modify pypi_publish.yaml

This commit is contained in:
root
2024-07-12 05:07:27 +08:00
parent fa4243ee29
commit a768cb2dfd

View File

@@ -16,12 +16,15 @@ jobs:
with: with:
python-version: '3.x' python-version: '3.x'
- name: Install, Build and publish - name: Install build tools
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build and publish
env: env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: | run: |
python -m pip install --upgrade pip python -m build
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
twine upload dist/* twine upload dist/*