From 35afe47d0de32e8d68356df3b2a1f0da1823a2bc Mon Sep 17 00:00:00 2001 From: Luni-4 Date: Tue, 29 Dec 2020 14:44:45 +0100 Subject: [PATCH] Format release notes in a better way --- .github/workflows/deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6640126..ffb51f7 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,16 +29,19 @@ jobs: run: | strip target/release/cbindgen - - name: Get cbindgen's version + - name: Handle release data and files id: tagName run: | VERSION=$(cargo pkgid | cut -d# -f2 | cut -d: -f2) echo "::set-output name=version::$VERSION" + tail -n +3 CHANGES | sed '/^##/q' | + sed '$ d' | awk '{$1=$1};1' > CHANGES.txt - name: Create a release uses: softprops/action-gh-release@v1 with: name: v${{ steps.tagName.outputs.version }} + body_path: CHANGES.txt files: | target/release/cbindgen env: