Skip to content

Commit

Permalink
release: use pypi trusted publishers
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrowla committed Jan 13, 2024
1 parent ade58b2 commit c4ce42e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Expand Up @@ -11,6 +11,8 @@ jobs:
pypi:
name: PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -38,14 +40,9 @@ jobs:
- name: Publish package on PyPI
if: ${{ github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

- name: Publish package on TestPyPI
if: ${{ github.event_name != 'release' }}
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit c4ce42e

Please sign in to comment.