From 69a3c89b30731b95db7d6dde52cb0fe1149ff75e Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 17 Jan 2025 07:53:42 -0600 Subject: [PATCH 1/2] Publish to test TestPyPI before publishing to PyPI --- .github/workflows/release-python.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 19a96ec1c..795aa93d0 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 From fd856e37f46d835a54f7a0f02f9f1888f0cf1042 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Fri, 17 Jan 2025 08:02:30 -0600 Subject: [PATCH 2/2] address review --- .github/workflows/release-python.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index 795aa93d0..b8381327a 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -113,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 }}