We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e46740 commit f5301bbCopy full SHA for f5301bb
.github/workflows/deploy.yml
@@ -1,15 +1,15 @@
1
name: Build and upload to PyPI
2
3
-# Build on every branch push, tag push, and pull request change:
4
on:
5
- # Trigger the workflow on push or pull request,
6
- # but only for the master branch
7
push:
8
branches:
9
- master
10
pull_request:
11
12
+ release:
+ types:
+ - published
13
14
jobs:
15
build_wheels:
@@ -60,8 +60,7 @@ jobs:
60
upload_pypi:
61
needs: [build_wheels, build_sdist]
62
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')
+ if: github.event_name == 'release' && github.event.action == 'published'
65
steps:
66
- uses: actions/download-artifact@v2
67
with:
0 commit comments