Skip to content

Commit

Permalink
publish to pypi as a trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
ikonst committed May 21, 2024
1 parent 7d0ebf3 commit 0a4ce93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
Expand All @@ -30,12 +33,9 @@ jobs:
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ github.event_name == 'release' }}
with:
password: ${{ secrets.PYPI_API_TOKEN }}

- name: Publish to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit 0a4ce93

Please sign in to comment.