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