use oidc instead of token
This commit is contained in:
parent
59f81950fe
commit
f7d9956c0f
1 changed files with 2 additions and 2 deletions
4
.github/workflows/publish.yaml
vendored
4
.github/workflows/publish.yaml
vendored
|
|
@ -58,15 +58,15 @@ jobs:
|
||||||
# files in the draft release.
|
# files in the draft release.
|
||||||
environment: 'publish'
|
environment: 'publish'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
|
||||||
# Try uploading to Test PyPI first, in case something fails.
|
# Try uploading to Test PyPI first, in case something fails.
|
||||||
- uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
|
- uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.TEST_PYPI_TOKEN }}
|
|
||||||
repository_url: https://test.pypi.org/legacy/
|
repository_url: https://test.pypi.org/legacy/
|
||||||
packages_dir: artifact/
|
packages_dir: artifact/
|
||||||
- uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
|
- uses: pypa/gh-action-pypi-publish@29930c9cf57955dc1b98162d0d8bc3ec80d9e75c
|
||||||
with:
|
with:
|
||||||
password: ${{ secrets.PYPI_TOKEN }}
|
|
||||||
packages_dir: artifact/
|
packages_dir: artifact/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue