chore: use PyPI Trusted Publisher for releases (#1500)

This commit is contained in:
Joe Rickerby
2023-05-16 13:29:12 -04:00
committed by GitHub
parent c74083cfda
commit 301dca264f
+3 -3
View File
@@ -27,6 +27,9 @@ 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@v3
@@ -35,6 +38,3 @@ jobs:
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}