Skip to content

Commit b60c8d2

Browse files
committed
Update GitHub Actions workflow for PyPI publishing
- Change TWINE_USERNAME to use the token method for authentication - Update TWINE_PASSWORD to utilize the new PYPI_API_TOKEN secret for enhanced security
1 parent 2184a96 commit b60c8d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
pip install build twine
3636
- name: Build and publish
3737
env:
38-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
39-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
38+
TWINE_USERNAME: __token__
39+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
4040
run: |
4141
python -m build
4242
twine check dist/*

0 commit comments

Comments
 (0)