mirror of
https://github.com/pandorafuture/wx-cli.git
synced 2026-08-29 04:00:55 +00:00
ci: use CHANGELOG.md content as release notes
This commit is contained in:
@@ -19,6 +19,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
targets: aarch64-apple-darwin
|
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)
|
- name: Build release (arm64)
|
||||||
run: cargo build --release --target aarch64-apple-darwin
|
run: cargo build --release --target aarch64-apple-darwin
|
||||||
|
|
||||||
@@ -33,4 +44,4 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: wx-cli-${{ github.ref_name }}-macos-arm64.tar.gz
|
files: wx-cli-${{ github.ref_name }}-macos-arm64.tar.gz
|
||||||
generate_release_notes: true
|
body: ${{ steps.changelog.outputs.body }}
|
||||||
|
|||||||
Reference in New Issue
Block a user