Skip to content

Commit ad0c1a5

Browse files
committed
OIDC update for manual PyPI deploy also.
1 parent f209c3e commit ad0c1a5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/manualdeploy.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ jobs:
6262
upload_pypi:
6363
needs: [build_wheels, build_sdist]
6464
runs-on: ubuntu-latest
65+
permissions:
66+
# IMPORTANT: this permission is mandatory for trusted publishing
67+
id-token: write
6568
steps:
6669
- uses: actions/download-artifact@v4
6770
with:
@@ -70,8 +73,4 @@ jobs:
7073
merge-multiple: true
7174

7275
- name: Publish package on PyPI
73-
uses: pypa/gh-action-pypi-publish@release/v1
74-
with:
75-
user: __token__
76-
password: ${{ secrets.PYPI_API_TOKEN }}
77-
verbose: true
76+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)