Skip to content

Commit f5301bb

Browse files
committed
update deploy
1 parent 5e46740 commit f5301bb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
name: Build and upload to PyPI
22

3-
# Build on every branch push, tag push, and pull request change:
43
on:
5-
# Trigger the workflow on push or pull request,
6-
# but only for the master branch
74
push:
85
branches:
96
- master
107
pull_request:
118
branches:
129
- master
10+
release:
11+
types:
12+
- published
1313

1414
jobs:
1515
build_wheels:
@@ -60,8 +60,7 @@ jobs:
6060
upload_pypi:
6161
needs: [build_wheels, build_sdist]
6262
runs-on: ubuntu-latest
63-
# upload to PyPI on every tag starting with 'v'
64-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
63+
if: github.event_name == 'release' && github.event.action == 'published'
6564
steps:
6665
- uses: actions/download-artifact@v2
6766
with:

0 commit comments

Comments
 (0)