Skip to content

Version 0.0.1

Version 0.0.1 #14

Workflow file for this run

name: Build Wheels + PyPI deploy
on:
release:
types:
- published
workflow_dispatch:
jobs:
build-wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build wheels
uses: pypa/cibuildwheel@v3.4.1
- uses: actions/upload-artifact@v7
with:
name: artifact-${{ matrix.os }}
path: ./wheelhouse/*.whl
upload_testpypi:
needs: [build-wheels]
runs-on: ubuntu-latest
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v8
with:
pattern: artifact-*
merge-multiple: true
path: dist
- uses: pypa/gh-action-pypi-publish@v1.14.0
with:
repository_url: https://test.pypi.org/legacy/
upload_pypi:
needs: [build-wheels, upload_testpypi]
runs-on: ubuntu-latest
permissions:
id-token: write
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v8
with:
pattern: artifact-*
merge-multiple: true
path: dist
- uses: pypa/gh-action-pypi-publish@v1.14.0