Skip to content

Commit fc4fe3a

Browse files
Support trusted-publishing for package releases
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 265e612 commit fc4fe3a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/pypi-release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
needs:
7272
- create-gh-release
7373
runs-on: ubuntu-24.04
74+
environment: pypi-publish
75+
permissions:
76+
id-token: write
7477

7578
steps:
7679
- name: Download built archives
@@ -81,6 +84,4 @@ jobs:
8184

8285
- name: Publish to PyPI
8386
if: startsWith(github.ref, 'refs/tags')
84-
uses: pypa/gh-action-pypi-publish@release/v1
85-
with:
86-
password: ${{ secrets.PYPI_API_TOKEN }}
87+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)