Update PyPI to use Trusted Publishing.

This commit is contained in:
Josh W 2024-09-03 21:42:55 -04:00
parent ea42a66eb9
commit 985ef13cf9

View file

@ -79,6 +79,9 @@ jobs:
upload_all:
needs: [build_wheels, make_sdist]
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- name: Get SDist and wheels from artifact container
uses: actions/download-artifact@v4
@ -87,8 +90,6 @@ jobs:
path: dist
merge-multiple: true
- name: Publish wheels to Test PyPI
uses: pypa/gh-action-pypi-publish@v1.10.1
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.TEST_PYPI_USERNAME }}
password: ${{ secrets.TEST_PYPI_PASSWORD }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/