From fd57ce88086e3739f4b5fbe9293b8a0024bf53bc Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 17 Jan 2025 11:13:05 -0600 Subject: [PATCH] Publish to test TestPyPI before publishing to PyPI (#223) --- .github/workflows/release-python.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 19a96ec1..b8381327 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -76,6 +76,11 @@ jobs: with: name: all-dist-${{ github.run_id }} path: dist/ + - name: Publish package distributions to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ + skip-existing: true - name: Publish package distributions to PyPI if: startsWith(inputs.dry_run, 'false') uses: pypa/gh-action-pypi-publish@release/v1 @@ -108,5 +113,4 @@ jobs: silk_asset_group: ${{ env.SILK_ASSET_GROUP }} evergreen_project: ${{ env.EVERGREEN_PROJECT }} token: ${{ github.token }} - repository_url: https://test.pypi.org/legacy/ dry_run: ${{ inputs.dry_run }}