Skip to content

Commit

Permalink
fix: pypi upload with api token
Browse files Browse the repository at this point in the history
The Trusted Identity does not work
  • Loading branch information
matq007 committed Sep 17, 2024
1 parent 40253e8 commit 0a0de9e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ jobs:
needs:
- build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cat-python
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

steps:
- name: Download all the dists
Expand All @@ -52,3 +47,6 @@ jobs:
path: dist/
- name: Publish distribution package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
repository-url: https://upload.pypi.org/legacy/

0 comments on commit 0a0de9e

Please sign in to comment.