Skip to content

Commit 0e4d415

Browse files
committed
workflow: only build wheels for python 3.7+
1 parent 854f7cd commit 0e4d415

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/publish.yml

+10-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ jobs:
88
deploy:
99
runs-on: ubuntu-latest
1010

11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python: ["py37", "py38", "py39", "py310"]
15+
1116
steps:
1217
- uses: actions/checkout@v2
1318

@@ -20,11 +25,13 @@ jobs:
2025
run: |
2126
python -m pip install --upgrade pip
2227
pip install setuptools wheel twine build
23-
24-
- name: Build and publish
28+
29+
- name: Build wheels
30+
run: python setup.py bdist_wheel --python-tag ${{ matrix.python }}
31+
32+
- name: Upload wheels
2533
env:
2634
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2735
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2836
run: |
29-
python -m build
3037
twine upload dist/*

0 commit comments

Comments
 (0)