Skip to content

Commit

Permalink
Switch to "trusted publishing" for production PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
movermeyer authored Oct 16, 2023
1 parent ce4ff7f commit f246048
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 @@ -304,6 +304,8 @@ jobs:
]
runs-on: ubuntu-latest
environment: production_pypi
permissions:
id-token: write # Required for "trusted publishing"

steps:
- uses: actions/download-artifact@v3
Expand All @@ -326,7 +328,3 @@ jobs:

- name: Publish package to PyPI
uses: pypa/[email protected]
with:
# TODO: Change to use "Trusted publishing"?
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit f246048

Please sign in to comment.