Skip to content

Commit

Permalink
pypi Trusted Publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
szn committed Apr 10, 2024
1 parent 0de1016 commit 45573f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
environment:
name: pypi
url: https://pypi.org/p/confluence.md
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
Expand Down Expand Up @@ -43,10 +46,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 45573f6

Please sign in to comment.