Add automatic changelog generation

This commit is contained in:
Oliver Traber 2025-06-14 21:40:14 +00:00
parent d57c4a3a23
commit e3977172b6
Signed by: Bluemedia
GPG key ID: C0674B105057136C
2 changed files with 32 additions and 2 deletions

22
.github/changelog-configuration.json vendored Normal file
View file

@ -0,0 +1,22 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": ["enhancement"]
},
{
"title": "## 🐛 Fixes",
"labels": ["bug"]
},
{
"title": "## ⤵️ Dependencies",
"labels": ["dependencies"]
},
{
"title": "## 💭 Uncategorized",
"labels": []
}
],
"template": "#{{CHANGELOG}}",
"pr_template": "* #{{TITLE}} by @#{{AUTHOR}} in ##{{NUMBER}}"
}

View file

@ -23,10 +23,18 @@ jobs:
npm run build npm run build
- name: Create output zip - name: Create output zip
run: cd build; zip -r ../fancy-gatus-${{ github.ref_name }}.zip * run: cd build; zip -r ../fancy-gatus-${{ github.ref_name }}.zip *
- name: Publish Release - name: Build changelog
id: release
uses: mikepenz/release-changelog-builder-action@v5
with:
configuration: ".github/changelog-configuration.json"
failOnError: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
name: Fancy Gatus ${{ github.ref_name }} name: Fancy Gatus ${{ github.ref_name }}
body_path: ${{ github.workspace }}/CHANGELOG.md body: ${{ steps.release.outputs.changelog }}
files: fancy-gatus-${{ github.ref_name }}.zip files: fancy-gatus-${{ github.ref_name }}.zip
fail_on_unmatched_files: true fail_on_unmatched_files: true