File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ jobs:
1717 - name : Install dependencies
1818 run : |
1919 python -m pip install --upgrade pip
20- pip install setuptools wheel twine
20+ pip install setuptools wheel twine build
2121 - name : Build and publish
2222 env :
2323 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
2424 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
2525 run : |
26- python setup.py sdist bdist_wheel
26+ python -m build
2727 twine upload dist/*
Original file line number Diff line number Diff line change 1+ name : Upload Python Package
2+
3+ on :
4+ push
5+
6+ jobs :
7+ deploy :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - uses : actions/checkout@v6
11+ - name : Set up Python
12+ uses : actions/setup-python@v6
13+ with :
14+ python-version : ' 3.x'
15+ - name : Install dependencies
16+ run : |
17+ python -m pip install --upgrade pip
18+ pip install setuptools wheel twine build
19+ - name : Build and publish
20+ env :
21+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
22+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
23+ run : |
24+ python -m build
You can’t perform that action at this time.
0 commit comments