From 0a0de9e042590aee823b33e70a79c5f43ba9443c Mon Sep 17 00:00:00 2001 From: Martin Porks Date: Tue, 17 Sep 2024 16:23:45 +0200 Subject: [PATCH] fix: pypi upload with api token The Trusted Identity does not work --- .github/workflows/release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a88ce8b..6ebcae8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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/