From 224a85155b13c6fafdad8b86dfeeadbea609dbcd Mon Sep 17 00:00:00 2001 From: Justice Vellacott Date: Fri, 19 Dec 2025 20:24:52 -0500 Subject: [PATCH] feat: automate GitHub release notes generation from CHANGELOG.md, remove draft status, and ignore temporary notes file. --- .github/workflows/release.yml | 9 ++++++++- .gitignore | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fbb21c4..8e9cbac 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,14 @@ jobs: run: | tag="${GITHUB_REF#refs/tags/}" + # Extract changelog section for this tag + sed -n "/^## \[$tag\]/,/^## \[/ { /^## \[$tag\]/b; /^## \[/b; p; }" CHANGELOG.md > "release_notes.md" + gh release create "$tag" \ --title="$tag" \ - --draft \ + --fail-on-no-commits \ + --notes-file "release_notes.md" \ main.js manifest.json styles.css + + # Remove release notes file + rm "release_notes.md" diff --git a/.gitignore b/.gitignore index e09a007..130dd53 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ data.json # Exclude macOS Finder (System Explorer) View States .DS_Store +release_notes.md