Skip to content

v0.2.0

v0.2.0 #16

Workflow file for this run

name: Build
on:
pull_request:
push:
branches:
- master
release:
types: [published]
jobs:
build-wheel:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@61cb8a9741eeb8a550a1b8544337180c0fc8476b # v7.2.0
with:
python-version: "3.14"
- name: Adjust version for non-tagged build
if: github.event_name == 'pull_request' || (github.event_name == 'push' && !startsWith(github.ref, 'refs/tags'))
run: uv run .github/scripts/adjust_version.py
- run: uv build --wheel
- uses: actions/upload-artifact@v6
with:
name: dist
path: dist/
- name: Upload wheel to release
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
run: gh release upload "${{ github.event.release.tag_name }}" dist/*.whl