Skip to content

release-main

release-main #6

Workflow file for this run

name: release-main
on:
release:
types: [published]
branches: [master]
jobs:
build_wheels:
name: "Build on ${{ matrix.os }}"
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
continue-on-error: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build wheels on ${{ matrix.os }}
uses: pypa/cibuildwheel@v3.3.1
- uses: actions/upload-artifact@v4
if: always()
with:
name: distribution-${{ matrix.os }}
path: ./wheelhouse/*.whl
release:
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v4
with:
name: distribution-*
path: dist/
- name: Setup Python
uses: actions/setup-python@v6
- name: Install tox
run: |
python -m pip install tox
- name: Release
run: tox -e release
env:
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}