Skip to content

Commit d236bd9

Browse files
authored
Migrate from PyPI tokens to Trusted Publishers (#58)
1 parent 41bcc87 commit d236bd9

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
@@ -10,6 +10,10 @@ env:
1010

1111
jobs:
1212
release:
13+
environment: pypi
14+
permissions:
15+
contents: write
16+
id-token: write
1317
runs-on: ubuntu-latest
1418
steps:
1519
- name: Check out the repository
@@ -34,5 +38,3 @@ jobs:
3438
- name: Upload package
3539
if: github.event_name == 'release'
3640
uses: pypa/gh-action-pypi-publish@release/v1
37-
with:
38-
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)