summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pypi.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml
index 5882c48..61cf219 100644
--- a/.github/workflows/pypi.yml
+++ b/.github/workflows/pypi.yml
@@ -24,6 +24,7 @@ jobs:
run: |
python -m build --sdist --wheel --outdir dist/ .
- name: Publish package to TestPyPI
+ if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}