Skip to content

Commit 5e46740

Browse files
authored
Update deploy.yml
1 parent 4e73674 commit 5e46740

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ on:
1010
pull_request:
1111
branches:
1212
- master
13-
# trigger on release
14-
release:
1513

1614
jobs:
1715
build_wheels:
@@ -62,8 +60,8 @@ jobs:
6260
upload_pypi:
6361
needs: [build_wheels, build_sdist]
6462
runs-on: ubuntu-latest
65-
# upload to PyPI on every release
66-
if: github.event_name == 'release' && github.event.action == 'published'
63+
# upload to PyPI on every tag starting with 'v'
64+
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
6765
steps:
6866
- uses: actions/download-artifact@v2
6967
with:

0 commit comments

Comments
 (0)