From d81100eed48f2c16d914e46cb1a6005f97db20e8 Mon Sep 17 00:00:00 2001 From: cayasde Date: Mon, 13 Jul 2026 18:25:50 -0400 Subject: [PATCH] fix(ci): use CHANGELOG.md for release notes instead of --generate-notes --- .github/workflows/publish-release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 6b1b9ee..9f80930 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -55,6 +55,17 @@ jobs: mv .tmp/release-assets/lutest-macos-arm64/lutest \ "dist/lutest-v${VERSION}-macos-arm64" + - name: Extract release notes from CHANGELOG.md + env: + VERSION: ${{ steps.version.outputs.value }} + shell: bash + run: | + awk -v ver="$VERSION" ' + $0 == "## " ver { found = 1 } + found { print } + found && /^## / && $0 != "## " ver { exit } + ' CHANGELOG.md > .tmp/release-notes.md + - name: Create GitHub Release env: GH_TOKEN: ${{ github.token }} @@ -66,4 +77,4 @@ jobs: dist/lutest-v${VERSION}-linux-x64 \ dist/lutest-v${VERSION}-macos-arm64 \ --title "v${VERSION}" \ - --generate-notes + --notes-file .tmp/release-notes.md