Skip to content

Python package build and publish (Windows) #8

Python package build and publish (Windows)

Python package build and publish (Windows) #8

name: Python package build and publish (Windows)
on: workflow_dispatch
jobs:
deploy-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2.1.1
with:
submodules: recursive
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install cibuildwheel and twine
run: |
python -m pip install --upgrade cibuildwheel twine
- name: Build windows wheels
env:
CIBW_BUILD: cp36-win_amd64 cp37-win_amd64 cp38-win_amd64 cp39-win_amd64 cp310-win_amd64 cp311-win_amd64
run: |
python -m cibuildwheel --output-dir dist
- name: Publish wheels to PyPI
continue-on-error: true
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/*-win*.whl