Skip to content

Commit c1a4f9e

Browse files
authored
Update python-deploy_to_pypi.yml
Change to trusted publisher for PyPI
1 parent 3b3b392 commit c1a4f9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/python-deploy_to_pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
deploy:
99
name: Build and publish to PyPI
1010
runs-on: ubuntu-22.04
11+
environment: pypi
12+
permissions:
13+
id-token: write
1114
steps:
1215
- uses: actions/checkout@v4
1316
with:
@@ -22,6 +25,3 @@ jobs:
2225
run: python -m build -n --sdist --wheel --outdir dist/ .
2326
- name: Publish distribution to Test PyPI
2427
uses: pypa/gh-action-pypi-publish@release/v1
25-
with:
26-
user: __token__
27-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)