Skip to content

Commit

Permalink
Use "trusted publishing" for Test PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
movermeyer authored Oct 16, 2023
1 parent 4933321 commit 3a07f57
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ jobs:
[pre_build_sanity_check, build_wheels, build_wheels_windows, build_sdist]
runs-on: ubuntu-latest
environment: test_pypi
permissions:
id-token: write # Required for "trusted publishing"

steps:
- uses: actions/download-artifact@v3
Expand All @@ -234,9 +236,6 @@ jobs:
- name: Publish package to TestPyPI
uses: pypa/[email protected]
with:
# TODO: Change to use "Trusted publishing"?
user: __token__
password: ${{ secrets.test_pypi_password }}
repository-url: https://test.pypi.org/legacy/

pre_publish_sanity_check:
Expand Down

0 comments on commit 3a07f57

Please sign in to comment.