Skip to content

Commit

Permalink
add filter to upload package only on a tagged commit
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-richard committed May 14, 2023
1 parent c260eda commit 6d61a04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
--wheel
--outdir dist/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 6d61a04

Please sign in to comment.