diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 1fb8b5b..bf0773c 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -4,6 +4,7 @@ on: push: tags: - "*" + pull_request: jobs: build_wheels: @@ -49,6 +50,7 @@ jobs: upload_pypi: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') steps: - uses: actions/download-artifact@v4 with: