From a632136806a03af200968c5a9cb1848d0cac451b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sun, 19 May 2024 20:54:51 +0200 Subject: [PATCH] fix: only release on tags --- .github/workflows/publish.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0d9d290..6548cf2 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -23,7 +23,7 @@ jobs: publish-to-pypi: name: >- Publish Python 🐍 distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' # only publish to PyPI on tag pushes or dev version for main + if: "${{ startsWith(github.ref, 'refs/tags/') }}" needs: - build runs-on: ubuntu-latest @@ -46,7 +46,7 @@ jobs: name: >- Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes + if: "${{ startsWith(github.ref, 'refs/tags/') }}" needs: - publish-to-pypi runs-on: ubuntu-latest