From 8fa90f725ee429f135d0667c80dbbee615d0e730 Mon Sep 17 00:00:00 2001 From: Gabriele Santomaggio Date: Wed, 4 Dec 2024 10:38:19 +0100 Subject: [PATCH] update pip release with token (#218) * update pip release with token --------- Signed-off-by: Gabriele Santomaggio --- .github/workflows/publish-prerelease.yaml | 4 ++-- .github/workflows/publish-pypi.yaml | 2 +- .github/workflows/publish-release.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-prerelease.yaml b/.github/workflows/publish-prerelease.yaml index 26d207c..28fd0bd 100644 --- a/.github/workflows/publish-prerelease.yaml +++ b/.github/workflows/publish-prerelease.yaml @@ -11,5 +11,5 @@ jobs: with: pypi_repository_url: https://test.pypi.org/legacy/ secrets: - pypi_api_login: ${{ secrets.PYPI_LOGIN }} - pypi_api_password: ${{ secrets.PYPI_PASSWORD }} \ No newline at end of file + pypi_api_login: __token__ + pypi_api_password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/publish-pypi.yaml b/.github/workflows/publish-pypi.yaml index 24af311..db1c6e4 100644 --- a/.github/workflows/publish-pypi.yaml +++ b/.github/workflows/publish-pypi.yaml @@ -28,7 +28,7 @@ jobs: - name: build with poetry env: REPO: ${{ inputs.pypi_repository_url }} - run: | + run: | curl -sSL https://install.python-poetry.org | python3 - export PATH="/home/runner/.local/bin:$PATH" poetry config repositories.test-pypi $REPO diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index 3941305..db565f9 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -11,5 +11,5 @@ jobs: with: pypi_repository_url: https://upload.pypi.org/legacy/ secrets: - pypi_api_login: ${{ secrets.PYPI_LOGIN }} - pypi_api_password: ${{ secrets.PYPI_PASSWORD }} \ No newline at end of file + pypi_api_login: __token__ + pypi_api_password: ${{ secrets.PYPI_TOKEN }} \ No newline at end of file