From 3cc7ccd6dea9340ccce9729f300c8af394a899f6 Mon Sep 17 00:00:00 2001 From: opariffazman Date: Tue, 23 Jun 2026 20:46:39 +0800 Subject: [PATCH] ci(release): auto-generate release notes from commits since last tag Replace the hardcoded --notes blob with `gh release create --generate-notes` (GitHub Release Notes API builds a "What's Changed" changelog from the PRs / commits since the previous tag). A short --notes header is kept and prepended above the changelog to carry the RTX requirement + Maxine license attribution, which the auto-changelog can't know. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e12ebe3..d3c4393 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,8 +82,15 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | + # --generate-notes auto-builds a "What's Changed" changelog from the PRs/commits since + # the previous tag (GitHub Release Notes API). --notes is PREPENDED above it as a fixed + # header carrying the RTX requirement + Maxine license attribution the changelog can't + # know. `n = newline (kept on one logical line so the YAML `run: |` indent can't break a + # here-string terminator). Optional grouping/exclusions can live in .github/release.yml. + $header = "AI effects require an NVIDIA RTX GPU; non-RTX installs run as a plain webcam overlay. Multi-GPU build (Turing/Ampere/Ada/Blackwell engines bundled) — verified on Ampere (sm86); other RTX arches are best-effort and grey out gracefully if an engine fails to load.`n`nBundled NVIDIA Maxine runtime (VFX 1.2.0.0 + AR 1.1.1.0) is governed by the 2025 NVIDIA Software License Agreement + Open/Community Model Licenses — see THIRD-PARTY-NOTICES.md." gh release create '${{ github.ref_name }}' '${{ steps.art.outputs.path }}' ` --title 'Camera on Screen ${{ steps.ver.outputs.version }}' ` --verify-tag ` - --notes 'Automated release. Multi-GPU build (Turing/Ampere/Ada/Blackwell engines bundled); verified on Ampere (sm86), other RTX arches are best-effort and grey out gracefully if an engine fails to load. AI effects require an NVIDIA RTX GPU; non-RTX installs run as a plain webcam overlay. Bundled NVIDIA Maxine runtime (VFX 1.2.0.0 + AR 1.1.1.0) is governed by the 2025 NVIDIA Software License Agreement + Open/Community Model Licenses — see THIRD-PARTY-NOTICES.md.' + --generate-notes ` + --notes $header if ($LASTEXITCODE -ne 0) { throw "gh release create failed ($LASTEXITCODE)" }