build: add changelog generation on release

This commit is contained in:
zhom
2025-06-11 03:23:16 +04:00
parent df2c1316d4
commit c807ea5596
2 changed files with 26 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
name: Generate changelog
on:
release:
types: [created, edited]
jobs:
changelog:
name: Generate changelog
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate a changelog
uses: orhun/git-cliff-action@v4
id: git-cliff
with:
args: --verbose
env:
OUTPUT: CHANGELOG.md
- name: Print the changelog
run: cat "${{ steps.git-cliff.outputs.changelog }}"