update pypi upload logic

This commit is contained in:
赵小蒙
2024-06-17 12:21:03 +08:00
parent e57a9d87c7
commit 35d39735da

View File

@@ -119,8 +119,7 @@ jobs:
files: './dist/*.whl'
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
- name: Publish distribution to PyPI
run: |
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }}