From b5d45bdb00475e77f949fab42b4e1674dcf4bd85 Mon Sep 17 00:00:00 2001 From: Annika Wickert Date: Sun, 16 Jan 2022 12:41:23 +0000 Subject: [PATCH] Only run on tag --- .github/workflows/publish.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a535ae7..53eb6fe 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -27,7 +27,8 @@ jobs: --wheel --outdir dist/ . - - name: Publish distribution 📦 to Test PyPI + - name: Publish distribution 📦 to Test PyPI + if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.TEST_PYPI_API_TOKEN }}