diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c716293dc..4a86aacc2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -242,7 +242,7 @@ jobs: name: dist path: dist/ - name: Publish to PyPI - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/') + if: github.event_name == 'release' && github.event.action == 'published' uses: pypa/gh-action-pypi-publish@release/v1 with: user: __token__