Merge pull request #393 from dbhart/docs-theme #15
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
# This workflow will build wheels and upload them to pypi | |
name: release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
wheels: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2019, macOS-11, ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build wheels | |
uses: pypa/cibuildwheel@v2.11.1 | |
env: | |
CIBW_ENVIRONMENT: BUILD_WNTR_EXTENSIONS='true' | |
CIBW_BUILD: cp37-* cp38-* cp39-* cp310-* cp311-* | |
CIBW_SKIP: "*-win32 *-manylinux_i686 pp* *-musllinux*" | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: ./wheelhouse/*.whl | |
source: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: build the sdist | |
run: | | |
python -m pip install --upgrade build | |
python -m build --sdist | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: dist/*.tar.gz | |
publish-to-pypi: | |
needs: [wheels, source] | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: artifact | |
path: dist | |
- uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_WNTR_API_TOKEN }} |