From c33cba31ae6800e2c7f84ede167497763c699fb2 Mon Sep 17 00:00:00 2001 From: Brian Kohan Date: Tue, 8 Oct 2024 23:02:12 -0700 Subject: [PATCH] only run release workflow on tag creation --- .github/workflows/release.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87c5054..6ac7683 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,7 @@ jobs: build: name: Build distribution 📦 + if: startsWith(github.ref, 'refs/tags/') # only publish on tag pushes runs-on: ubuntu-latest steps: @@ -37,7 +38,6 @@ jobs: publish-to-pypi: name: >- Publish Python 🐍 distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - build runs-on: ubuntu-latest @@ -100,7 +100,6 @@ jobs: publish-to-testpypi: name: Publish Python 🐍 distribution 📦 to TestPyPI - if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes needs: - build runs-on: ubuntu-latest