Skip to content

Commit

Permalink
Use trusted publishing for PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw authored May 14, 2023
1 parent d25cf83 commit 18e9214
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 67,7 @@ jobs:
needs: ["build", "provenance"]
permissions:
contents: write
id-token: write # Needed for trusted publishing to PyPI.
runs-on: "ubuntu-latest"

steps:
Expand All @@ -83,7 84,4 @@ jobs:
gh release upload ${{ github.ref_name }} dist/* --repo ${{ github.repository }}
- name: "Publish dists to PyPI"
uses: "pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f"
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
uses: "pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598"

0 comments on commit 18e9214

Please sign in to comment.