Update PyPI to use Trusted Publishing.
This commit is contained in:
parent
ea42a66eb9
commit
985ef13cf9
1 changed files with 5 additions and 4 deletions
9
.github/workflows/build-test-pypi.yml
vendored
9
.github/workflows/build-test-pypi.yml
vendored
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue