Skip to content

Commit b2766e3

Browse files
committed
fix pypi
1 parent 8545efc commit b2766e3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ name: Upload Python Package
66
on:
77
release:
88
types: [created]
9+
workflow_dispatch:
910

1011
jobs:
1112
deploy:
@@ -24,8 +25,8 @@ jobs:
2425
pip install setuptools wheel twine
2526
- name: Build and publish
2627
env:
27-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
28-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
28+
TWINE_USERNAME: __token__
29+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
2930
run: |
3031
python setup.py sdist bdist_wheel
3132
twine upload dist/*

0 commit comments

Comments
 (0)