From 00a3a42acb9bb3eed3fbfb11b1854929c114ec9f Mon Sep 17 00:00:00 2001 From: laggykiller Date: Thu, 21 Mar 2024 10:28:33 +0800 Subject: [PATCH] Fix wheels not published to pypi on release --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__