Skip to content

Commit

Permalink
fix(CI): pypi deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Turo Mikkonen committed Feb 11, 2021
1 parent 9cbadd2 commit e68c1c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: casperdcl/deploy-pypi@v1
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
- uses: actions/setup-python@v2
- uses: casperdcl/deploy-pypi@v2
with:
password: ${{ secrets.PYPI_TOKEN }}
build: true
# only upload if a tag is pushed (otherwise just build & check)
upload: ${{ github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') }}

0 comments on commit e68c1c7

Please sign in to comment.