Skip to content

Commit e68c1c7

Browse files
committed
fix(CI): pypi deploy
1 parent 9cbadd2 commit e68c1c7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- uses: actions/checkout@v2
35-
- uses: casperdcl/deploy-pypi@v1
36-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
35+
- uses: actions/setup-python@v2
36+
- uses: casperdcl/deploy-pypi@v2
3737
with:
3838
password: ${{ secrets.PYPI_TOKEN }}
3939
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') }}
4042

0 commit comments

Comments
 (0)