Skip to content

Commit

Permalink
Update pythonpublish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yafshar committed Mar 20, 2023
1 parent 65cb09e commit 5d304da
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build a binary wheel and a source tarball
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution xsum to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 5d304da

Please sign in to comment.