Generate release notes automatically from changelog

This commit is contained in:
skykooler 2025-01-05 14:59:46 -05:00 committed by GitHub
parent 662ec65a15
commit a731ef12fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 1 deletions

View File

@ -104,14 +104,22 @@ jobs:
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: pnpm install # change this to npm or pnpm depending on which one you use.
- name: Extract release notes from Changelog.md
id: changelog
uses: peter-evans/extract-markdown-section@v1
with:
file: Changelog.md
pattern: "# ${{ env.VERSION }}:" # Look for the version header (e.g., # 0.6.15-alpha:)
- name: Create Release with Tauri Action
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_NOTES: ${{ env.RELEASE_NOTES }}
with:
tagName: "app-v${{ env.VERSION }}" # Use the original version tag for the release
releaseName: "Lightningbeam v${{ env.VERSION }}"
releaseBody: 'See the assets to download this version and install.'
releaseBody: "${{ steps.changelog.outputs.markdown }}"
releaseDraft: true # Set to true if you want the release to be a draft
prerelease: true
args: ${{ matrix.args }}