Skip to content

Commit 301dca2

Browse files
authored
chore: use PyPI Trusted Publisher for releases (#1500)
1 parent c74083c commit 301dca2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
needs: [dist]
2828
runs-on: ubuntu-latest
2929
if: github.event_name == 'release' && github.event.action == 'published'
30+
environment: pypi
31+
permissions:
32+
id-token: write
3033

3134
steps:
3235
- uses: actions/download-artifact@v3
@@ -35,6 +38,3 @@ jobs:
3538
path: dist
3639

3740
- uses: pypa/gh-action-pypi-publish@release/v1
38-
with:
39-
user: __token__
40-
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)