From 87f49433b9a377854d2649a590f58c791cf44014 Mon Sep 17 00:00:00 2001 From: Igor Davydenko Date: Sun, 11 Feb 2024 19:39:16 +0100 Subject: [PATCH] build: Configure Trusted Publisher for the repository (#197) Fixes: #196 Related: https://til.simonwillison.net/pypi/pypi-releases-from-github --- .github/workflows/ci.yml | 3 --- .github/workflows/ci_package.yml | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4be5f82..0a3db8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,9 +83,6 @@ jobs: needs: ["test"] uses: "./.github/workflows/ci_package.yml" - secrets: - pypi-user: "${{ secrets.PYPI_USERNAME }}" - pypi-password: "${{ secrets.PYPI_PASSWORD }}" release: needs: ["package"] diff --git a/.github/workflows/ci_package.yml b/.github/workflows/ci_package.yml index c916cf4..a9188a3 100644 --- a/.github/workflows/ci_package.yml +++ b/.github/workflows/ci_package.yml @@ -9,15 +9,6 @@ on: required: false default: "4.0.2" - secrets: - pypi-user: - description: "PyPI username to use." - required: true - - pypi-password: - description: "PyPI password (token) to use." - required: true - jobs: package: name: "Build & Deploy Package" @@ -44,6 +35,3 @@ jobs: - name: "Publish package" if: "${{ startsWith(github.ref, 'refs/tags/') }}" uses: "pypa/gh-action-pypi-publish@v1.8.11" - with: - user: "${{ secrets.pypi-user }}" - password: "${{ secrets.pypi-password }}"