Skip to content

Commit e1192c7

Browse files
committed
ci: integrate git-cliff for release notes generation
1 parent bbe1c27 commit e1192c7

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88

99
permissions:
1010
contents: write
11+
id-token: write
1112

1213
jobs:
1314
build:
@@ -86,17 +87,28 @@ jobs:
8687
steps:
8788
- name: Checkout
8889
uses: actions/checkout@v4
90+
with:
91+
fetch-depth: 0
8992

9093
- name: Download artifacts
9194
uses: actions/download-artifact@v4
9295
with:
9396
path: artifacts
9497

98+
- name: Generate Release Notes
99+
uses: orhun/git-cliff-action@v4
100+
id: git-cliff
101+
with:
102+
config: cliff.toml
103+
args: --latest --strip header
104+
env:
105+
OUTPUT: RELEASE_NOTES.md
106+
95107
- name: Create Release
96108
uses: softprops/action-gh-release@v2
97109
with:
98110
files: artifacts/*/*
99-
generate_release_notes: true
111+
body_path: RELEASE_NOTES.md
100112
draft: false
101113
prerelease: false
102114

0 commit comments

Comments
 (0)