Skip to content

Commit

Permalink
Setup Trusted Publishing in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Mar 12, 2024
1 parent 8fab1b7 commit 12360fb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ on:

jobs:
deploy:

runs-on: ubuntu-latest

environment: publishing
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- name: Set up Python
Expand All @@ -33,6 +34,4 @@ jobs:
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/

0 comments on commit 12360fb

Please sign in to comment.