Skip to content

Commit

Permalink
enable trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
sierra-moxon committed Jul 3, 2024
1 parent eb0fc00 commit eb93844
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- uses: actions/checkout@v3
Expand All @@ -31,6 +36,4 @@ jobs:

- name: Publish distribution 📦 to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit eb93844

Please sign in to comment.