From 0c2a8af74542398a94ff52209324b1531d7c0751 Mon Sep 17 00:00:00 2001 From: David Lobato Date: Tue, 5 Mar 2024 18:37:49 +0000 Subject: [PATCH] Publish to testpypi only on main --- .github/workflows/publish-to-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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