Skip to content

Commit 6e9097d

Browse files
committed
Update release workflow to use PyPI trusted publishing
1 parent 48d0e3c commit 6e9097d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
name: "Publish to PyPI"
12+
permissions:
13+
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
1214

1315
steps:
1416
- uses: actions/checkout@v3
@@ -28,7 +30,5 @@ jobs:
2830
--sdist
2931
--outdir dist/
3032
.
31-
- name: Publish distribution 📦 to PyPI
33+
- name: Publish package distributions to PyPI
3234
uses: pypa/gh-action-pypi-publish@release/v1
33-
with:
34-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)