Skip to content

Commit 6476864

Browse files
committed
ci: add changelog
1 parent 0c17831 commit 6476864

File tree

2 files changed

+16
-401
lines changed

2 files changed

+16
-401
lines changed

.github/workflows/release-gui.yaml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ on:
33
push:
44
tags:
55
- '*'
6-
workflow_dispatch:
76

87
jobs:
98
release:
@@ -49,12 +48,27 @@ jobs:
4948
- name: Install frontend dependencies
5049
run: npm ci
5150

52-
- name: Build the app
51+
- name: Update CHANGELOG
52+
id: changelog
53+
uses: requarks/changelog-action@v1.10.2
54+
with:
55+
token: ${{ github.token }}
56+
tag: ${{ github.ref_name }}
57+
58+
- name: Create Github Release
5359
uses: tauri-apps/tauri-action@action-v0.5.9
5460

5561
env:
5662
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5763
with:
5864
releaseName: 'Bluetooth Battery Monitor v__VERSION__'
65+
releaseBody: ${{ steps.changelog.outputs.changes }}
5966
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
6067
prerelease: false
68+
69+
- name: Commit CHANGELOG.md
70+
uses: stefanzweifel/git-auto-commit-action@v5.0.1
71+
with:
72+
branch: main
73+
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
74+
file_pattern: CHANGELOG.md

0 commit comments

Comments
 (0)