mirror of
https://github.com/thejusticeman/obsidian-mobile-plugin.git
synced 2026-07-22 06:40:12 +00:00
feat: automate GitHub release notes generation from CHANGELOG.md, remove draft status, and ignore temporary notes file.
This commit is contained in:
parent
461bc9021a
commit
224a85155b
2 changed files with 9 additions and 1 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -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
1
.gitignore
vendored
|
|
@ -20,3 +20,4 @@ data.json
|
|||
|
||||
# Exclude macOS Finder (System Explorer) View States
|
||||
.DS_Store
|
||||
release_notes.md
|
||||
|
|
|
|||
Loading…
Reference in a new issue