Skip to content

Commit

Permalink
ci: use PyPI trusted publisher (#591)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii authored Apr 23, 2024
1 parent a18498b commit 4737386
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
needs: [dist]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
environment: pypi
permissions:
id-token: write


steps:
- uses: actions/download-artifact@v4
Expand All @@ -61,8 +65,6 @@ jobs:
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}

- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 4737386

Please sign in to comment.