Skip to content

Commit a243866

Browse files
andreaskurzclaude
andcommitted
ci: add TiaC build and release wheel workflow
Adds a self-contained GitHub Actions workflow to build the Python wheel using uv and publish it to GitHub Releases on tag push or manual trigger. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 41671f6 commit a243866

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: TiaC Build and Release Wheel
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Tag to release (e.g. v3.2.1)'
11+
required: true
12+
type: string
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v6
19+
20+
- name: Install uv
21+
uses: astral-sh/setup-uv@v7
22+
with:
23+
enable-cache: true
24+
25+
- name: Fetch Reveal.js assets
26+
run: uv run tools/fetch_revealjs.py
27+
28+
- name: Build wheel and sdist
29+
run: uv build
30+
31+
- name: Upload dist artifacts
32+
uses: actions/upload-artifact@v7
33+
with:
34+
name: dist-packages
35+
path: dist/
36+
37+
release:
38+
runs-on: ubuntu-latest
39+
needs: build
40+
permissions:
41+
contents: write
42+
steps:
43+
- uses: actions/download-artifact@v8
44+
with:
45+
name: dist-packages
46+
path: dist/
47+
48+
- name: Create GitHub Release
49+
uses: softprops/action-gh-release@v2
50+
with:
51+
tag_name: ${{ inputs.tag || github.ref_name }}
52+
name: Release ${{ inputs.tag || github.ref_name }}
53+
draft: false
54+
prerelease: ${{ contains(inputs.tag || github.ref_name, 'a') || contains(inputs.tag || github.ref_name, 'b') || contains(inputs.tag || github.ref_name, 'rc') }}
55+
files: dist/*

0 commit comments

Comments
 (0)