Skip to content

Commit

Permalink
Update publish-to-pypi.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gschramm authored Jan 21, 2025
1 parent eddc106 commit 2affcb7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish-to-pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ jobs:
build-n-publish:
name: Build and publish Python distributions package to 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
contents: read

steps:
- uses: actions/checkout@v4
Expand All @@ -37,5 +38,3 @@ jobs:
- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 2affcb7

Please sign in to comment.