Skip to content

Commit 3fa4c14

Browse files
committed
ci: Use trusted publishers with PyPI
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 5af81a1 commit 3fa4c14

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,10 @@ jobs:
229229
publish-to-pypi:
230230
needs: ["create-github-release"]
231231
runs-on: ubuntu-20.04
232+
permissions:
233+
# For trusted publishing. See:
234+
# https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/
235+
id-token: write
232236
steps:
233237
- name: Download dist files
234238
uses: actions/download-artifact@v3
@@ -238,6 +242,3 @@ jobs:
238242

239243
- name: Publish the Python distribution to PyPI
240244
uses: pypa/gh-action-pypi-publish@release/v1
241-
with:
242-
password: ${{ secrets.PYPI_API_TOKEN }}
243-
skip_existing: true

0 commit comments

Comments
 (0)