diff --git a/actions/python/deployment/action.yml b/actions/python/deployment/action.yml index 1d744b5..a319a12 100644 --- a/actions/python/deployment/action.yml +++ b/actions/python/deployment/action.yml @@ -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