Skip to content

Commit 4008770

Browse files
committed
ci: show better release changelog
1 parent 3b144a2 commit 4008770

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,24 @@ jobs:
5050
git push origin v$VERSION
5151
echo "✓ Release v$VERSION created and pushed"
5252
53+
- name: Generate release notes
54+
id: changelog
55+
run: |
56+
VERSION="${{ github.event.inputs.version }}"
57+
git cliff --latest --strip all --output RELEASE_NOTES.md
58+
echo "Generated release notes for v$VERSION"
59+
60+
- name: Create GitHub Release
61+
uses: softprops/action-gh-release@v2
62+
with:
63+
tag_name: v${{ github.event.inputs.version }}
64+
name: v${{ github.event.inputs.version }}
65+
body_path: RELEASE_NOTES.md
66+
draft: false
67+
prerelease: false
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
5371
- name: Run GoReleaser
5472
uses: goreleaser/goreleaser-action@v6
5573
with:

cliff.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ commit_parsers = [
5757
{ message = "^style", group = "<!-- 5 -->Styling" },
5858
{ message = "^test", group = "<!-- 6 -->Testing" },
5959
{ message = "^chore\\(release\\): prepare for", skip = true },
60+
{ message = "^chore\\(release\\)", skip = true },
6061
{ message = "^chore\\(deps.*\\)", skip = true },
6162
{ message = "^chore\\(pr\\)", skip = true },
6263
{ message = "^chore\\(pull\\)", skip = true },

0 commit comments

Comments
 (0)