Skip to content

Fix workflow

Fix workflow #9

Workflow file for this run

name: main
on:
push:
tags: ['*']
jobs:
build:
name: Build wheels on ${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8 - 3.12"
- name: Build wheels
uses: pypa/[email protected]
with:
output-dir: dist
env:
CIBW_BUILD: cp38-*
CIBW_ARCHS_LINUX: native
CIBW_ARCHS_WINDOWS: native
CIBW_ARCHS_MACOS: x86_64 arm64
- name: Upload wheelhouse artifact
uses: actions/upload-artifact@v4
with:
path: dist/*.whl
name: wheels-${{matrix.os}}
retention-days: 1
upload:
name: Upload wheels to PyPI
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download wheelhouse artifact
uses: actions/download-artifact@v4
with:
path: dist
pattern: wheels-*
merge-multiple: true
- uses: pypa/[email protected]
with:
password: ${{secrets.PYPI_TOKEN}}