Skip to content

Commit

Permalink
Generate full changelog and store as latest release
Browse files Browse the repository at this point in the history
  • Loading branch information
4Ply committed Dec 28, 2024
1 parent 5a44f07 commit 05555f7
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ permissions:

on:
push:
branches: ['main']
tags:
- '[0-9]+.[0-9]+.[0-9]+'

Expand All @@ -20,8 +21,9 @@ jobs:
with:
fetch-depth: 0

- name: Generate a changelog
- name: Generate changelog for tag
uses: orhun/git-cliff-action@main
if: startsWith(github.ref, 'refs/tags/')
id: git-cliff
with:
config: cliff.toml
Expand All @@ -31,5 +33,20 @@ jobs:
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
make_latest: true
make_latest: false
body_path: ${{ steps.git-cliff.outputs.changelog }}

- name: Generate entire changelog
uses: orhun/git-cliff-action@main
id: git-cliff-all
with:
config: cliff.toml
args: --strip all -v --github-repo ${{ github.repository }}

- name: Create Github release
uses: softprops/action-gh-release@v2
with:
name: latest
tag_name: latest
make_latest: true
body_path: ${{ steps.git-cliff-all.outputs.changelog }}

0 comments on commit 05555f7

Please sign in to comment.