Skip to content

Commit

Permalink
Added api token for pypi publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeyuXuAudio committed Oct 21, 2024
1 parent 3b9d410 commit bc57064
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
skip_existing: true
env:
TWINE_USERNAME: __token__ # OIDC uses __token__ for authentication
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} # OIDC token automatically provided
TWINE_PASSWORD: ${{ secrets.API_TOKEN }} # OIDC token automatically provided

# Publish to PyPI on macOS and Windows using Twine directly
- name: Publish to PyPI on macOS/Windows
Expand All @@ -100,7 +100,7 @@ jobs:
twine upload --skip-existing dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_PASSWORD: ${{ secrets.API_TOKEN }}

# - name: Clean up build artifacts
# run: |
Expand Down

0 comments on commit bc57064

Please sign in to comment.