ci: use CHANGELOG.md content as release notes

This commit is contained in:
pandorafuture
2026-06-04 23:21:18 +08:00
parent e5646df42c
commit 2305059110
+12 -1
View File
@@ -19,6 +19,17 @@ jobs:
with:
targets: aarch64-apple-darwin
- name: Extract changelog
id: changelog
run: |
VERSION="${GITHUB_REF_NAME#v}"
BODY=$(awk "/^## \[${VERSION}\]/{found=1; next} /^## \[/{if(found) exit} found{print}" CHANGELOG.md)
{
echo "body<<CHANGELOG_EOF"
echo "$BODY"
echo "CHANGELOG_EOF"
} >> "$GITHUB_OUTPUT"
- name: Build release (arm64)
run: cargo build --release --target aarch64-apple-darwin
@@ -33,4 +44,4 @@ jobs:
uses: softprops/action-gh-release@v2
with:
files: wx-cli-${{ github.ref_name }}-macos-arm64.tar.gz
generate_release_notes: true
body: ${{ steps.changelog.outputs.body }}