Skip to content

Commit 753d818

Browse files
authored
ci: use trusted publisher deployment (#306)
New PyPI feature. Signed-off-by: Henry Schreiner <[email protected]>
1 parent aaebd58 commit 753d818

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/cd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ env:
1212
jobs:
1313
deploy:
1414
runs-on: ubuntu-22.04
15+
environment: pypi
16+
permissions:
17+
id-token: write
1518
steps:
1619
- uses: actions/checkout@v3
1720
with:
@@ -26,5 +29,3 @@ jobs:
2629

2730
- uses: pypa/[email protected]
2831
if: github.event_name == 'release' && github.event.action == 'published'
29-
with:
30-
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)