2 Commits

Author SHA1 Message Date
Keith Solomon
ad2034a833 fix: Correct changelog extraction in release workflow #release
Some checks failed
Add release / Create release (push) Has been cancelled
2025-03-26 09:28:15 -05:00
Keith Solomon
6cb02fdf54 feature: Extract latest changelog entry for release notes and update .gitignore #release
Some checks failed
Add release / Create release (push) Has been cancelled
2025-03-26 09:26:38 -05:00
3 changed files with 12 additions and 2 deletions

View File

@@ -43,13 +43,22 @@ jobs:
run: |
echo "Tag to be created: ${{ steps.release-tag.outputs.tag }}"
- name: Extract latest changelog entry
id: extract-changelog
run: |
# Extract changelog for latest version section
changelog=$(awk '/^## /{i++} i==1{print}' CHANGELOG.md)
echo "changelog<<EOF" >> "$GITHUB_OUTPUT"
echo "$changelog" >> "$GITHUB_OUTPUT"
echo "EOF" >> "$GITHUB_OUTPUT"
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.release-tag.outputs.tag }}
name: Release ${{ steps.release-tag.outputs.tag }}
body: |
${{ github.event.head_commit.message }}
body: ${{ steps.extract-changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.DS_Store

View File