Skip to content

Commit 254cce5

Browse files
committed
Update GitHub Actions workflow to use PyPI API token for publishing
1 parent 20f3779 commit 254cce5

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
@@ -20,8 +20,8 @@ jobs:
2020
pip install setuptools wheel twine
2121
- name: Build and publish
2222
env:
23-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
24-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
23+
TWINE_USERNAME: __token__
24+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2525
run: |
2626
python setup.py sdist bdist_wheel
2727
twine upload --verbose --skip-existing dist/*

0 commit comments

Comments
 (0)