Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mbucchi authored Aug 24, 2020
1 parent 4e73674 commit 5e46740
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ on:
pull_request:
branches:
- master
# trigger on release
release:

jobs:
build_wheels:
Expand Down Expand Up @@ -62,8 +60,8 @@ jobs:
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
# upload to PyPI on every release
if: github.event_name == 'release' && github.event.action == 'published'
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v2
with:
Expand Down

0 comments on commit 5e46740

Please sign in to comment.