Skip to content

Commit 8f8c64f

Browse files
committed
build(ci): use git-cliff release notes
Signed-off-by: Clément Nussbaumer <clement.nussbaumer@postfinance.ch>
1 parent 9c44a69 commit 8f8c64f

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
steps:
1111
- name: Checkout
1212
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
1315
- name: Setup Go
1416
uses: actions/setup-go@v5
1517
with:
@@ -19,10 +21,19 @@ jobs:
1921
with:
2022
username: ${{ secrets.DOCKERHUB_USERNAME }}
2123
password: ${{ secrets.DOCKERHUB_TOKEN }}
24+
- name: Generate a changelog
25+
uses: orhun/git-cliff-action@v3
26+
id: git-cliff
27+
with:
28+
config: cliff.toml
29+
args: -v --latest --strip header
30+
env:
31+
GITHUB_REPO: ${{ github.repository }}
32+
OUTPUT: CHANGES.md
2233
- name: GoReleaser
2334
uses: goreleaser/goreleaser-action@v5
2435
with:
2536
version: latest
26-
args: release --rm-dist
37+
args: release --clean --release-notes=CHANGES.md
2738
env:
2839
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist/
2+
CHANGES.md

0 commit comments

Comments
 (0)