diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 4f3e9bcc3..790b9ce36 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -2,12 +2,11 @@ name: publish pypi on: push: - branches: - - "main" + tags: + - '*' jobs: pypi-publish: - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') name: Upload release to PyPI runs-on: ubuntu-latest environment: