diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index acfc6eb..ee7e801 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,7 @@ jobs: MATCH: ${{ steps.check-tag.outputs.match }} run: echo "Match is $MATCH" - name: Publish distribution to Test PyPI - if: github.ref == 'refs/heads/main' && (steps.check-tag.outputs.match == 'prerelease' || steps.check-tag.outputs.match == 'release') + if: startsWith(github.ref, 'refs/tags/v') && (steps.check-tag.outputs.match == 'prerelease' || steps.check-tag.outputs.match == 'release') uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/