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