File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ permissions:
4
4
5
5
on :
6
6
push :
7
+ branches : ['main']
7
8
tags :
8
9
- ' [0-9]+.[0-9]+.[0-9]+'
9
10
20
21
with :
21
22
fetch-depth : 0
22
23
23
- - name : Generate a changelog
24
+ - name : Generate changelog for tag
24
25
uses : orhun/git-cliff-action@main
26
+ if : startsWith(github.ref, 'refs/tags/')
25
27
id : git-cliff
26
28
with :
27
29
config : cliff.toml
31
33
uses : softprops/action-gh-release@v2
32
34
if : startsWith(github.ref, 'refs/tags/')
33
35
with :
34
- make_latest : true
36
+ make_latest : false
35
37
body_path : ${{ steps.git-cliff.outputs.changelog }}
38
+
39
+ - name : Generate entire changelog
40
+ uses : orhun/git-cliff-action@main
41
+ id : git-cliff-all
42
+ with :
43
+ config : cliff.toml
44
+ args : --strip all -v --github-repo ${{ github.repository }}
45
+
46
+ - name : Create Github release
47
+ uses : softprops/action-gh-release@v2
48
+ with :
49
+ name : latest
50
+ tag_name : latest
51
+ make_latest : true
52
+ body_path : ${{ steps.git-cliff-all.outputs.changelog }}
You can’t perform that action at this time.
0 commit comments