Skip to content

Commit

Permalink
Specify parameters required for "Publishing with a Trusted Publisher"
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Oct 26, 2024
1 parent 07a464f commit bf7b519
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pypi-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
runs-on: ubuntu-24.04
needs: [build_wheels]
if: startsWith(github.ref, 'refs/tags')
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand All @@ -55,5 +60,3 @@ jobs:

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

0 comments on commit bf7b519

Please sign in to comment.