From 10736c39ad37c17a59dae23ab4c2bb032bb7a430 Mon Sep 17 00:00:00 2001 From: Daniel Popescu Date: Mon, 24 Apr 2023 23:33:48 +0000 Subject: [PATCH] Only upload to pypi if tagged --- .github/workflows/pypi.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pypi.yaml b/.github/workflows/pypi.yaml index 888540e..aa6abe6 100644 --- a/.github/workflows/pypi.yaml +++ b/.github/workflows/pypi.yaml @@ -8,6 +8,7 @@ jobs: tests: uses: ./.github/workflows/test.yaml pypi-publish: + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') name: Upload release to PyPI needs: [tests] # require tests to pass before deploy runs runs-on: ubuntu-latest