From cae5bcabbe53ce231f8caaffebd1ccaad1d67db2 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Tue, 3 Sep 2024 20:29:07 -0400 Subject: [PATCH] CI: try publishing wheels to TestPyPI --- .github/workflows/ci-build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index a9e44dce..1de732b4 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -195,3 +195,27 @@ jobs: with: name: wxPython-wheel-${{ steps.init.outputs.canonical_id }} path: dist/wxPython-*.whl + + + publish-to-testpypi: + name: Publish Python distribution to TestPyPI + if: github.event_name != 'pull_request' + needs: build-wheels + runs-on: ubuntu-22.04 + + environment: + name: testpypi + url: https://test.pypi.org/p/wxPython + + permissions: + id-token: write + + steps: + - name: Download all the dists + uses: actions/download-artifact@v4 + with: + path: dist/ + - name: Publish distribution to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/