Skip to content

Commit

Permalink
Enhance release workflow: Install build and twine in one command and …
Browse files Browse the repository at this point in the history
…add PyPI publishing step
  • Loading branch information
royshil committed Nov 8, 2024
1 parent 2bca184 commit e96927e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
python -m pip install --upgrade pip build twine
- name: Build source distribution
run: python -m build --sdist
Expand All @@ -47,4 +46,11 @@ jobs:
prerelease: false
files: |
dist/*.tar.gz
*/*.whl
*/*.whl
- name: Publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine upload */*.whl

0 comments on commit e96927e

Please sign in to comment.