From 205db71484f60c03ceb59b92f3caff5e0b5a840f Mon Sep 17 00:00:00 2001 From: Hussaini Usman Date: Wed, 4 Sep 2024 15:21:05 +0100 Subject: [PATCH] add pypi username & password to publish workflow --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3f6f229..cfcfd2a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -50,9 +50,6 @@ jobs: name: Publish Python 🐍 distribution 📦 to PyPI needs: [lint, build] runs-on: ubuntu-latest - environment: - name: pypi - url: https://pypi.org/p/drf-logto permissions: id-token: write steps: @@ -63,6 +60,9 @@ jobs: path: dist/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 + with: + username: "__token__" + password: ${{ secrets.PYPI_TOKEN }} github-release: name: Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release