From 765dc65b75b43b9f76da5a16c7c3f2bc73738e86 Mon Sep 17 00:00:00 2001 From: Gustavo Carreno Date: Sun, 28 Apr 2024 14:03:53 +0100 Subject: [PATCH] chore: Adding `git-cliff` reelase notes automation --- .github/workflows/main.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 80efb18..b912c17 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -61,11 +61,20 @@ jobs: - name: Build Release run: make release-all + - name: Generate Release Notes + id: git-cliff + uses: orhun/git-cliff-action@v2 + with: + config: cliff.toml + args: --latest --strip header + env: + OUTPUT: CHANGES.md + - name: Create GitHub release uses: softprops/action-gh-release@v1 with: - name: EIYARO ${{ env.tag }} - body: "## New release" + name: EIYARO ${{ github.ref_name }} + body: ${{ steps.git-cliff.outputs.content }} files: target/* env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}