From 9701f89806f425bf1271f6ead134fa8283e19da3 Mon Sep 17 00:00:00 2001 From: Kye Russell Date: Tue, 2 Apr 2024 22:12:44 +0800 Subject: [PATCH] only run tag jobs/steps on version tags. --- .github/workflows/release.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4a0bcbc..df9bd37 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -36,10 +36,10 @@ jobs: with: name: dist path: dist/* - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/v') release-pypi: - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/v') name: Publish PyPI release runs-on: ubuntu-latest needs: test-and-build @@ -58,7 +58,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 release-github: - if: startsWith(github.ref, 'refs/tags/') + if: startsWith(github.ref, 'refs/tags/v') name: Publish GitHub release runs-on: ubuntu-latest needs: test-and-build