Skip to content

Commit

Permalink
add changelog section extraction for github release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
tuunit committed Nov 18, 2023
1 parent 391b1d6 commit 7a5e4b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,17 @@ jobs:
# Get version from tag
version=$(git describe --tags --abbrev=0)
# Extract CHANGELOG
numericVersion="${version#v}"
notes=$(sed -E "/^# (v|V)$numericVersion$/,/^# (v|V)/!d;//d" CHANGELOG.md)
# Publish release tag
git push origin "${version}"
# Create github release
gh release create "${version}" \
--title "${version}" \
--generate-notes \
--notes "${notes}" \
--prerelease
# Upload artifacts
Expand Down

0 comments on commit 7a5e4b9

Please sign in to comment.