Skip to content

Commit adc2b94

Browse files
authored
Merge pull request #178 from mindspore-lab/fix-workflow
fix(workflow): migrate pypi authentication to api tokens
2 parents 8e7b8cd + 05580dd commit adc2b94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/python-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
python -m build
3131
- name: Publish package
3232
env:
33-
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
34-
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
33+
TWINE_USERNAME: __token__
34+
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
3535
run: |
3636
twine upload dist/*

0 commit comments

Comments
 (0)