Skip to content

Cleanup: Remove redundant CI workflow #3

Cleanup: Remove redundant CI workflow

Cleanup: Remove redundant CI workflow #3

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: read
jobs:
build:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
command: build
args: --release --out dist --sdist
- name: Upload wheels to GitHub
uses: actions/upload-artifact@v4
with:
name: wheels-${{ matrix.os }}
path: dist
release:
name: Release to PyPI
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download all wheels
uses: actions/download-artifact@v4
with:
pattern: wheels-*
path: dist
merge-multiple: true
- name: Publish to PyPI
uses: PyO3/maturin-action@v1
env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
with:
command: upload
args: --non-interactive --skip-existing dist/*