Skip to content

Commit 3e4f8c5

Browse files
authored
build: enable Trusted Publishing to PyPI (#157)
1 parent d405238 commit 3e4f8c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
77

88
permissions:
9+
id-token: write
910
contents: write
1011

1112
jobs:
@@ -53,6 +54,7 @@ jobs:
5354
name: Publish to PyPI
5455
runs-on: ubuntu-latest
5556
needs: release
57+
environment: pypi
5658
steps:
5759
- name: Download artifact
5860
uses: actions/download-artifact@v7
@@ -61,5 +63,3 @@ jobs:
6163
path: dist/
6264
- name: Publish package to PyPI
6365
uses: pypa/gh-action-pypi-publish@release/v1
64-
with:
65-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)