File tree Expand file tree Collapse file tree 2 files changed +28
-87
lines changed
Expand file tree Collapse file tree 2 files changed +28
-87
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Upload
1+ name : Build
22on :
3- release :
4- types : [created]
3+ push :
4+ pull_request :
5+
56jobs :
6- deploy :
7+ build :
8+ name : Build
79 runs-on : ubuntu-latest
810 steps :
9- - uses : actions/checkout@v2
10- - name : Setup Python
11- uses : actions/setup-python@v1
12- with :
13- python-version : ' 3.x'
14- - name : Install dependencies
15- run : |
16- python -m pip install --upgrade pip
17- pip install setuptools wheel twine
18- - name : Upload
19- env :
20- TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
21- TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
22- run : |
23- python setup.py sdist bdist_wheel
24- twine upload dist/*
11+ - uses : actions/checkout@v4
12+ - uses : actions/setup-python@v5
13+ with :
14+ python-version : ' 3.8'
15+ - name : Build package
16+ run : |
17+ git fetch --prune --unshallow --tags --force
18+ python -m pip install --upgrade pip
19+ python -m pip install setuptools wheel
20+ python setup.py sdist bdist_wheel
21+ - name : Artifact upload
22+ uses : actions/upload-artifact@v4
23+ with :
24+ path : dist/*.whl
25+ retention-days : 30
26+ - name : Create release
27+ if : startsWith(github.ref, 'refs/tags/')
28+ uses : softprops/action-gh-release@v2
29+ with :
30+ files : dist/*.whl
31+ env :
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments