From 92c54d6fe157127df1b29bdc7d686f2efd107630 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Mon, 10 Feb 2025 17:23:51 -0800 Subject: [PATCH] don't publish to production PyPI when triggered --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86a0bce5..5e9a3a70 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,5 +23,12 @@ jobs: uv pip install build python -m build - - name: Publish package distributions to PyPI + - name: Publish to Test PyPI + if: github.event_name == 'workflow_dispatch' + uses: pypa/gh-action-pypi-publish@v1.12.4 + with: + repository-url: https://test.pypi.org/legacy/ + + - name: Publish to Production PyPI + if: github.event_name == 'release' uses: pypa/gh-action-pypi-publish@v1.12.4