workflow: only build wheels for python 3.6+

This commit is contained in:
TonyCrane 2022-02-16 11:59:33 +08:00
parent 8ef42fae24
commit aea79be6cc
No known key found for this signature in database
GPG key ID: 2313A5058A9C637C

View file

@ -8,6 +8,11 @@ jobs:
deploy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["py36", "py37", "py38", "py39", "py310"]
steps:
- uses: actions/checkout@v2
@ -21,10 +26,12 @@ jobs:
python -m pip install --upgrade pip
pip install setuptools wheel twine build
- name: Build and publish
- name: Build wheels
run: python setup.py bdist_wheel --python-tag ${{ matrix.python }}
- name: Upload wheels
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
twine upload dist/*