Skip to content

Commit

Permalink
Extract release notes from CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RumovZ committed Aug 23, 2023
1 parent c69f92e commit 7c8d59e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
dist/*Linux
dist/*.dmg
dist/*.exe
CHANGELOG.md
release:
name: Create release
Expand All @@ -87,6 +88,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
- name: Extract Release Notes
id: extract_notes
run: |
awk 'BEGIN { RS="<!-- [0-9]+\\.[0-9]+\\.[0-9]+ -->\\s*"; ORS=""; } NR==2 { print $0; exit; }' artifacts/CHANGELOG.md >CHANGELOG.md
shell: bash
- uses: ncipollo/release-action@v1
with:
artifacts: "artifacts/*"
artifacts: "artifacts/dist/*"
bodyFile: "CHANGELOG.md"

0 comments on commit 7c8d59e

Please sign in to comment.