mirror of
https://github.com/BluemediaDev/fancy-gatus.git
synced 2025-07-01 01:12:42 +02:00
Add automatic changelog generation
This commit is contained in:
parent
d57c4a3a23
commit
e3977172b6
2 changed files with 32 additions and 2 deletions
22
.github/changelog-configuration.json
vendored
Normal file
22
.github/changelog-configuration.json
vendored
Normal 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}}"
|
||||
}
|
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
@ -23,10 +23,18 @@ jobs:
|
|||
npm run build
|
||||
- name: Create output 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
|
||||
with:
|
||||
name: Fancy Gatus ${{ github.ref_name }}
|
||||
body_path: ${{ github.workspace }}/CHANGELOG.md
|
||||
body: ${{ steps.release.outputs.changelog }}
|
||||
files: fancy-gatus-${{ github.ref_name }}.zip
|
||||
fail_on_unmatched_files: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue