diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 5e2678f..63de745 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -30,6 +30,9 @@ jobs: pypi-publish: name: Publish release to PyPI + if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes + needs: + - build runs-on: ubuntu-latest environment: name: pypi