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:
|
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/
|
|
||||||
|
|
Loading…
Reference in a new issue