Skip to content

Commit

Permalink
Update deploy-pypi.yml
Browse files Browse the repository at this point in the history
Fix workflow to publish on PyPI using a Trusted Publisher (see https://docs.pypi.org/trusted-publishers/using-a-publisher/)
  • Loading branch information
jlenain authored Feb 7, 2025
1 parent 02ffc6e commit 1b0ff8f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
jobs:
deploy-pypi:
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: pypi
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
steps:
- uses: actions/checkout@v4

Expand All @@ -27,6 +32,3 @@ jobs:
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit 1b0ff8f

Please sign in to comment.