diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 903ccae9..ac7aa8e5 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -91,7 +91,7 @@ jobs: # Publish to TestPyPI on tag events of if manually triggered # Compare to 'true' string as booleans get turned into strings in the console if: >- - (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')) + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true') uses: pypa/gh-action-pypi-publish@v1.8.10 with: