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:
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:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*