diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 9fdadee..2f3d63f 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -63,7 +63,7 @@ jobs: git push build_wheels: - if: "startsWith(github.event.head_commit.message, 'bump:')" + if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && startsWith(github.event.head_commit.message, 'bump:')" name: Build wheels on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: