From deddeccc40b3f6373eeeb83770a6d7bec74a26d4 Mon Sep 17 00:00:00 2001 From: Kasun Vithanage Date: Thu, 13 Jun 2024 18:42:26 +0530 Subject: [PATCH] chore: added CHANGELOG.md --- .github/workflows/release.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bbf583a..83e8d9c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -52,6 +52,13 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Update CHANGELOG + id: changelog + uses: requarks/changelog-action@v1 + with: + token: ${{ github.token }} + tag: ${{ github.ref_name }} + - name: build-linux if: matrix.os == 'ubuntu-latest' run: sudo snap install snapcraft --classic && pnpm build:linux @@ -67,6 +74,7 @@ jobs: - name: release uses: softprops/action-gh-release@v2 with: + body: ${{ steps.changelog.outputs.changes }} draft: true files: | dist/*.exe @@ -81,3 +89,10 @@ jobs: dist/*.blockmap env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + + - name: Commit CHANGELOG.md + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: main + commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]' + file_pattern: CHANGELOG.md