Skip to content

Commit

Permalink
Update build_wheels.yml (#526)
Browse files Browse the repository at this point in the history
Publish wheels when a release is created in Github
  • Loading branch information
hardbyte authored Mar 8, 2022
1 parent 8d0263a commit 3b26893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest

# upload to PyPI on every tag starting with "v"
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# upload to PyPI on every release
if: github.event_name == 'release' && github.event.action == 'created'
steps:
- uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 3b26893

Please sign in to comment.