Skip to content

Commit

Permalink
ci: use trusted publisher deployment (#52)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed May 19, 2023
1 parent a2b02ae commit 199cf1b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ jobs:
needs: [build_wheels, make_sdist, download_cirrus]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
environment: pypi
permissions:
id-token: write

steps:
- uses: actions/download-artifact@v3
Expand All @@ -88,8 +91,4 @@ jobs:
find artifacts -type f -exec mv -t dist {} +
ls -lavh dist
- uses: pypa/gh-action-pypi-publish@v1.8.6
with:
user: __token__
# Remember to generate this and set it in "GitHub Secrets"
password: ${{ secrets.pypi_password }}
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 199cf1b

Please sign in to comment.