CI: try publishing wheels to TestPyPI

This commit is contained in:
Scott Talbert
2024-09-03 20:29:07 -04:00
parent b9f11a3453
commit cae5bcabbe

View File

@@ -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/