Skip to content

Commit 18e9214

Browse files
authored
Use trusted publishing for PyPI
1 parent d25cf83 commit 18e9214

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
needs: ["build", "provenance"]
6868
permissions:
6969
contents: write
70+
id-token: write # Needed for trusted publishing to PyPI.
7071
runs-on: "ubuntu-latest"
7172

7273
steps:
@@ -83,7 +84,4 @@ jobs:
8384
gh release upload ${{ github.ref_name }} dist/* --repo ${{ github.repository }}
8485
8586
- name: "Publish dists to PyPI"
86-
uses: "pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f"
87-
with:
88-
user: __token__
89-
password: ${{ secrets.PYPI_TOKEN }}
87+
uses: "pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598"

0 commit comments

Comments
 (0)