Skip to content

Commit 2a02f93

Browse files
committed
Switch to trusted publisher for PyPI uploads
1 parent d7c653e commit 2a02f93

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/deploy-sdist.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
sdist:
1010
runs-on: ubuntu-latest
11+
environment: "PyPI Deploy"
12+
permissions:
13+
id-token: write
1114

1215
steps:
1316
- name: Checkout source
@@ -22,6 +25,3 @@ jobs:
2225
- name: Publish package to PyPI
2326
if: github.event.action == 'published'
2427
uses: pypa/gh-action-pypi-publish@v1.14.0
25-
with:
26-
user: __token__
27-
password: ${{ secrets.pypi_password }}

0 commit comments

Comments
 (0)