From 59004f098f398a07512bc1e75d2f61377e12ffbd Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Tue, 28 Nov 2023 08:48:55 +0100 Subject: [PATCH] Deploy to test pypi only on tags --- .github/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d322907..4ece2e6 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -81,7 +81,7 @@ jobs: name: wheels path: dist - name: Publish package to Test PyPI - if: github.event.action != 'published' && github.event_name == 'push' + if: github.event.action != 'published' && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') uses: pypa/gh-action-pypi-publish@v1.8.10 with: user: __token__