Skip to content

Commit

Permalink
Publish releases to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
pkel committed Dec 12, 2022
1 parent 935bd9a commit 92072a5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,23 @@ jobs:
prerelease: ${{ contains(github.ref_name, '+') }}
file: 'wheels/*.whl'
file_glob: true

pypi_release:
name: Push to PyPI
runs-on: ubuntu-latest

needs: build_wheels

if: ${{ ! contains(github.ref_name, '+') }}

steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: wheels
path: dist

- name: Push to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 92072a5

Please sign in to comment.