Skip to content

Merge pull request #430 from kbonney/testing_update #17

Merge pull request #430 from kbonney/testing_update

Merge pull request #430 from kbonney/testing_update #17

Workflow file for this run

# 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-13, 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.11'
- 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 }}