File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ on : [push, pull_request]
2+ name : Build Python Package
3+ jobs :
4+ build_package :
5+ runs-on : ubuntu-20.04
6+
7+ steps :
8+ - uses : actions/checkout@v2
9+ - uses : actions/setup-python@v2
10+ - name : Install dependencies
11+ run : |
12+ python -m pip install --upgrade pip
13+ pip install setuptools wheel
14+ - name : Build package
15+ run : |
16+ python setup.py sdist bdist_wheel
Original file line number Diff line number Diff line change 1+ on :
2+ release :
3+ types : [created]
4+ name : Upload Python Package
5+ jobs :
6+ upload_package :
7+ runs-on : ubuntu-20.04
8+ steps :
9+ - uses : actions/checkout@v2
10+ - uses : actions/setup-python@v2
11+ - name : Install dependencies
12+ run : |
13+ python -m pip install --upgrade pip
14+ pip install setuptools wheel twine
15+ - name : Build and publish
16+ env :
17+ TWINE_USERNAME : __token__
18+ TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
19+ run : |
20+ python setup.py sdist bdist_wheel
21+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments