From 7c8d59eb05aeca04576dbb0043e09c9518cfd863 Mon Sep 17 00:00:00 2001 From: RumovZ Date: Wed, 23 Aug 2023 21:11:20 +0200 Subject: [PATCH] Extract release notes from CHANGELOG.md --- .github/workflows/release.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7ed187a0..ddc03637 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -78,6 +78,7 @@ jobs: dist/*Linux dist/*.dmg dist/*.exe + CHANGELOG.md release: name: Create release @@ -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="\\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"