Skip to content

Commit 31f6e86

Browse files
authored
Publish to PyPi using trusted publishing
For more details see: https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/ Signed-off-by: Leandro Lucarella <[email protected]>
1 parent d8e2295 commit 31f6e86

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
@@ -231,6 +231,10 @@ jobs:
231231
publish-to-pypi:
232232
needs: ["create-github-release"]
233233
runs-on: ubuntu-20.04
234+
permissions:
235+
# For trusted publishing. See:
236+
# https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/
237+
id-token: write
234238
steps:
235239
- name: Download dist files
236240
uses: actions/download-artifact@v3
@@ -240,6 +244,3 @@ jobs:
240244

241245
- name: Publish the Python distribution to PyPI
242246
uses: pypa/gh-action-pypi-publish@release/v1
243-
with:
244-
password: ${{ secrets.PYPI_API_TOKEN }}
245-
skip_existing: true

0 commit comments

Comments
 (0)