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: