Skip to content

Commit

Permalink
Update releaser.yml to get and publish all .whl files from the Releas…
Browse files Browse the repository at this point in the history
…e assets to PyPI, as well as the .tar.gz and .zip sources
  • Loading branch information
PProfizi committed Sep 18, 2023
1 parent 7a9de8a commit 552895b
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,24 @@ env:
jobs:

Publish_to_PyPI:
name: Publish to PyPI
name: "Publish Release to PyPI"
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- name: "Download Release Assets"
uses: robinraju/[email protected]
with:
fileName: "*.whl"
tarBall: true
zipBall: true
out-file-path: "assets"
extract: false
token: ${{ secrets.GITHUB_TOKEN }}

- name: "Upload to Public PyPI"
run: |
pip install twine
pip install build
python -m build
twine upload --skip-existing dist/*
twine upload --skip-existing assets/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
Expand Down

0 comments on commit 552895b

Please sign in to comment.