We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cbadd2 commit e68c1c7Copy full SHA for e68c1c7
.github/workflows/main.yml
@@ -32,9 +32,11 @@ jobs:
32
runs-on: ubuntu-latest
33
steps:
34
- uses: actions/checkout@v2
35
- - uses: casperdcl/deploy-pypi@v1
36
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
+ - uses: actions/setup-python@v2
+ - uses: casperdcl/deploy-pypi@v2
37
with:
38
password: ${{ secrets.PYPI_TOKEN }}
39
build: true
40
+ # only upload if a tag is pushed (otherwise just build & check)
41
+ upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}
42
0 commit comments