Skip to content

Commit 61d3347

Browse files
committed
Use OIDC to publish PyPI releases
1 parent 500dce0 commit 61d3347

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-pypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
# IMPORTANT: this permission is mandatory for trusted publishing
13+
id-token: write
1014
steps:
1115
- uses: actions/[email protected]
1216

@@ -21,5 +25,3 @@ jobs:
2125

2226
- name: Publish to PyPI
2327
uses: pypa/gh-action-pypi-publish@release/v1
24-
with:
25-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)