mirror of
https://github.com/BluemediaDev/fancy-gatus.git
synced 2025-07-01 01:12:42 +02:00
Merge pull request #6 from BluemediaDev/feature/auto-release-notes
Add automatic changelog generation
This commit is contained in:
commit
dc4f30aad4
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
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue