File tree Expand file tree Collapse file tree 2 files changed +67
-0
lines changed
Expand file tree Collapse file tree 2 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1+ # create wheel file
2+
3+ name : build Python package
4+
5+ on :
6+ push :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ name : Build Wheel
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Set up Python
16+ uses : actions/setup-python@v2
17+ with :
18+ python-version : ' 3.x'
19+ - name : Install build dependencies
20+ run : |
21+ python -m pip install --upgrade pip
22+ pip install setuptools wheel
23+ - name : Build package
24+ run : |
25+ python setup.py sdist bdist_wheel
26+ - name : Upload Artifacts
27+ uses : actions/upload-artifact@v2
28+ with :
29+ path : |
30+ dist/*.whl
31+ dist/*.tar.gz
Original file line number Diff line number Diff line change 1+ # upload source and wheel from build action
2+
3+ name : Upload Python Package
4+
5+ on :
6+ release :
7+ types : [created]
8+
9+ jobs :
10+ deploy :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v2
14+ - name : Set up Python
15+ uses : actions/setup-python@v2
16+ with :
17+ python-version : ' 3.x'
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install setuptools wheel twine
22+ - name : Build
23+ run : |
24+ python setup.py sdist bdist_wheel
25+ - name : Upload Artifacts
26+ uses : actions/upload-artifact@v2
27+ with :
28+ path : |
29+ dist/*.whl
30+ dist/*.tar.gz
31+ - name : Publish to PyPi
32+ env :
33+ TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
34+ TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
35+ run : |
36+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments