Python package build and publish (Windows) #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package build and publish (Windows) | |
on: workflow_dispatch | |
jobs: | |
deploy-windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/[email protected] | |
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 |