Skip to content

Commit

Permalink
Publish to PyPi using trusted publishing (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
llucax authored Apr 26, 2023
2 parents 9e63564 + 6621300 commit 130da6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ jobs:
publish-to-pypi:
needs: ["create-github-release"]
runs-on: ubuntu-20.04
permissions:
# For trusted publishing. See:
# https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/
id-token: write
steps:
- name: Download dist files
uses: actions/download-artifact@v3
Expand All @@ -238,6 +242,3 @@ jobs:

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

0 comments on commit 130da6d

Please sign in to comment.