Skip to content

Commit 1722848

Browse files
authored
ci: use pypi trusted publishing (#258)
use pypi trusted publishing Signed-off-by: gruebel <[email protected]>
1 parent 4883ab4 commit 1722848

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333

3434
release:
3535
runs-on: ubuntu-latest
36+
environment: release
37+
permissions:
38+
# IMPORTANT: this permission is mandatory for trusted publishing to pypi
39+
id-token: write
3640
needs: release-please
3741
if: ${{ needs.release-please.outputs.release_created }}
3842
container:
@@ -76,5 +80,3 @@ jobs:
7680
7781
- name: Publish a Python distribution to PyPI
7882
uses: pypa/gh-action-pypi-publish@release/v1
79-
with:
80-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)