diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 90cad91..77e99cc 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -97,7 +97,7 @@ jobs: publish-to-testpypi: name: Publish Python 🐍 distribution 📦 to TestPyPI - if: "contains(github.event.head_commit.message, '#testpypi')" + if: github.ref == 'refs/heads/main' needs: - build runs-on: ubuntu-latest