From 3d7a974b8f8a589f52e1652356b68d776d862c64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ge=CC=81ry=20Casiez?= <=> Date: Sat, 14 Dec 2024 20:05:19 +0100 Subject: [PATCH] Only publish pypi on tag push --- .github/workflows/pythonBinding.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pythonBinding.yml b/.github/workflows/pythonBinding.yml index a38a39a4..1da61eaa 100644 --- a/.github/workflows/pythonBinding.yml +++ b/.github/workflows/pythonBinding.yml @@ -85,7 +85,7 @@ jobs: python/ - name: Publish Python 🐍 distribution 📦 to PyPI - # if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes + if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes env: TWINE_USERNAME: "__token__" TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}