File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ permissions:
44
55on :
66 push :
7+ branches : ['main']
78 tags :
89 - ' [0-9]+.[0-9]+.[0-9]+'
910
2021 with :
2122 fetch-depth : 0
2223
23- - name : Generate a changelog
24+ - name : Generate changelog for tag
2425 uses : orhun/git-cliff-action@main
26+ if : startsWith(github.ref, 'refs/tags/')
2527 id : git-cliff
2628 with :
2729 config : cliff.toml
3133 uses : softprops/action-gh-release@v2
3234 if : startsWith(github.ref, 'refs/tags/')
3335 with :
34- make_latest : true
36+ make_latest : false
3537 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