Skip to content

Commit 8aaa116

Browse files
Merge pull request #17 from devgateway/task/DVIZ-24/admin-docker-optimization
chore(DVIZ-24): add changelog generation
2 parents 09cf3f7 + 356a729 commit 8aaa116

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,31 @@ jobs:
5151
&& cd forms/target/deps \
5252
&& jar -xf ../*.jar
5353
54+
- name: Generate a changelog
55+
uses: orhun/git-cliff-action@v3
56+
id: changelog
57+
with:
58+
config: cliff.toml
59+
args: --verbose
60+
env:
61+
OUTPUT: CHANGELOG.md
62+
GITHUB_REPO: ${{ github.repository }}
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
5465
- name: Generate Tag
5566
uses: mathieudutour/github-tag-action@v6.2
5667
with:
5768
github_token: ${{ secrets.GITHUB_TOKEN }}
5869
release_branches: 'master,main,release/*'
5970

6071

72+
6173
- uses: ncipollo/release-action@v1
6274
with:
6375
tag: ${{ steps.tag_version.outputs.new_tag || '1.0.0' }}
6476
name: Release ${{ steps.tag_version.outputs.new_tag || '1.0.0' }}
65-
body: ${{ steps.tag_version.outputs.changelog }}
77+
generateReleaseNotes: 'true'
78+
bodyFile: CHANGELOG.md
6679
artifacts: forms/target/*.jar
6780

6881
build-and-push-docker-image:

0 commit comments

Comments
 (0)