feat: automate GitHub release notes generation from CHANGELOG.md, remove draft status, and ignore temporary notes file.

This commit is contained in:
Justice Vellacott 2025-12-19 20:24:52 -05:00
parent 461bc9021a
commit 224a85155b
2 changed files with 9 additions and 1 deletions

View file

@ -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"

1
.gitignore vendored
View file

@ -20,3 +20,4 @@ data.json
# Exclude macOS Finder (System Explorer) View States
.DS_Store
release_notes.md