From 02b9e0538eddff66d86ec63b547497881a0c3b7d Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 26 Jul 2024 16:23:35 +0300 Subject: [PATCH] run publish jobs only when tags --- .github/workflows/publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 31f0e15..dd735aa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,6 +22,7 @@ jobs: build: name: Build distribution 📦 runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') steps: - name: Check out repository uses: actions/checkout@v4 @@ -135,6 +136,7 @@ jobs: github-release: name: Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') needs: # - publish-test - publish