Skip to content

Commit

Permalink
workflow: only build wheels for python 3.7+
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyCrane committed Feb 15, 2022
1 parent 854f7cd commit 0e4d415
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
deploy:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python: ["py37", "py38", "py39", "py310"]

steps:
- uses: actions/checkout@v2

Expand All @@ -20,11 +25,13 @@ jobs:
run: |
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/*

0 comments on commit 0e4d415

Please sign in to comment.