Format release notes in a better way

This commit is contained in:
Luni-4
2020-12-29 14:44:45 +01:00
committed by Emilio Cobos Álvarez
parent 14d1404455
commit 35afe47d0d
+4 -1
View File
@@ -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: