Skip to content

Commit

Permalink
Use Trusted Publishers to publish to PyPi
Browse files Browse the repository at this point in the history
  • Loading branch information
SukiCZ committed Jan 25, 2024
1 parent 661a509 commit 51080e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ jobs:
runs-on: ubuntu-latest
needs: [linter, test]
if: startsWith(github.ref, 'refs/tags/v')
# 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/[email protected]
- name: Set up Python
Expand All @@ -79,5 +84,3 @@ jobs:
--outdir dist/
- name: Build and publish 📦 to PyPI
uses: pypa/[email protected]
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 51080e8

Please sign in to comment.