Skip to content

Commit

Permalink
Only deploy on tag (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy authored Jun 25, 2024
1 parent 04bb8bb commit 3135c31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions actions/python/deployment/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ runs:
run: python -m build

- name: Publish package to TestPyPI
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true

- name: Publish package to PyPI
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true

0 comments on commit 3135c31

Please sign in to comment.