Skip to content

Commit 9ba200e

Browse files
committed
github: update for trusted publisher
1 parent 126989e commit 9ba200e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
upload_pypi:
6060
needs: [build_wheels, build_sdist]
6161
runs-on: ubuntu-latest
62+
permissions:
63+
# IMPORTANT: this permission is mandatory for trusted publishing
64+
id-token: write
6265
# upload to PyPI on every tag
6366
if: github.event_name == 'push' && github.ref_type == 'tag'
6467
steps:
@@ -69,6 +72,3 @@ jobs:
6972
path: dist
7073

7174
- uses: pypa/[email protected]
72-
with:
73-
user: __token__
74-
password: ${{ secrets.PYPI_TOKEN4 }}

0 commit comments

Comments
 (0)