Skip to content

Commit

Permalink
add pypi username & password to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Housain-maina committed Sep 4, 2024
1 parent 321c603 commit 205db71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 205db71

Please sign in to comment.