Skip to content

Commit f8c309a

Browse files
authored
Migrate from PyPI tokens to Trusted Publishers (#12)
1 parent 906325d commit f8c309a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
types: [published]
55
jobs:
66
release:
7+
environment: pypi
8+
permissions:
9+
contents: read
10+
id-token: write
711
runs-on: ubuntu-latest
812
steps:
913
- uses: actions/checkout@v3
@@ -14,5 +18,3 @@ jobs:
1418
- run: pip install -U nox
1519
- run: nox -s build
1620
- uses: pypa/gh-action-pypi-publish@release/v1
17-
with:
18-
password: ${{ secrets.PYPI_TOKEN }}

0 commit comments

Comments
 (0)