Skip to content

Commit

Permalink
upload wheels to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
antocuni committed Oct 19, 2021
1 parent 3bb6b38 commit 612ff79
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions .github/workflows/release-pypi.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
---
name: Release to PyPI

# on:
# release:
# types: [created]

on: [push] # temporary
on:
release:
types: [created]


jobs:
Expand Down Expand Up @@ -64,20 +62,20 @@ jobs:
path: ./wheelhouse/*.whl


# upload_pypi:
# name: Publish packages to PyPI
# # only publish packages once everything is successful
# needs: [build_bdist, build_sdist]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/download-artifact@v2
# with:
# name: artifact
# path: dist

# - uses: pypa/[email protected]
# with:
# user: __token__
# password: ${{ secrets.pypi_api_token }}
# # uncomment the following to upload to test.pypi.org
# # repository_url: https://test.pypi.org/legacy/
upload_pypi:
name: Publish packages to PyPI
# only publish packages once everything is successful
needs: [build_bdist, build_sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v2
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_api_token }}
# uncomment the following to upload to test.pypi.org
# repository_url: https://test.pypi.org/legacy/

0 comments on commit 612ff79

Please sign in to comment.