File tree Expand file tree Collapse file tree 2 files changed +58
-2
lines changed Expand file tree Collapse file tree 2 files changed +58
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ on: [pull_request]
55jobs :
66 build :
77
8-
98 strategy :
109 max-parallel : 4
1110 fail-fast : false
1817
1918 - uses : actions/checkout@v1
2019
21-
2220 - name : Set up Python ${{ matrix.python-version }}
2321 uses : actions/setup-python@v1
2422 with :
Original file line number Diff line number Diff line change 1+ name : Upload Python wheel to PyPI
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ wheels :
9+
10+ strategy :
11+ max-parallel : 4
12+ fail-fast : false
13+ matrix :
14+ python-version : [3.6, 3.7, 3.8]
15+ platform : [ubuntu-latest, macos-latest, windows-latest]
16+ runs-on : ${{ matrix.platform }}
17+
18+ steps :
19+
20+ - uses : actions/checkout@v1
21+
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v1
24+ with :
25+ python-version : ${{ matrix.python-version }}
26+
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ pip install setuptools wheel twine Cython
31+
32+ - name : Build and publish wheel
33+ env :
34+ TWINE_USERNAME : __token__
35+ TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_TOKEN }}
36+ run : |
37+ python setup.py bdist_wheel
38+ twine upload dist/*
39+
40+ sdist :
41+ runs-on : ubuntu-latest
42+ steps :
43+ - uses : actions/checkout@v1
44+ - name : Set up Python
45+ uses : actions/setup-python@v1
46+ with :
47+ python-version : ' 3.8'
48+ - name : Install dependencies
49+ run : |
50+ python -m pip install --upgrade pip
51+ pip install setuptools wheel twine Cython
52+ - name : Build and publish
53+ env :
54+ TWINE_USERNAME : __token__
55+ TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_TOKEN }}
56+ run : |
57+ python setup.py sdist
58+ twine upload dist/*
You can’t perform that action at this time.
0 commit comments