From 07808187d5727a0d7502b17847c1cc514fdc64e9 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 5 Feb 2025 17:49:26 +0100 Subject: [PATCH] enhance changelog generation, update release builder --- .github/workflows/release.yaml | 50 +++++++++++++++++++++++++++++++--- 1 file changed, 46 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a61200a..45d4c4f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,8 +1,8 @@ -name: build-and-test +name: build-release on: push: tags: - - "*" + - "v*.*.*" jobs: release: @@ -38,8 +38,50 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: mode: "PR" - + configurationJson: | + { + "template": "#{{CHANGELOG}}\n\n**Full Changelog**: #{{RELEASE_DIFF}}", + "pr_template": "- #{{TITLE}} (##{{NUMBER}}) by #{{AUTHOR}}\n#{{BODY}}", + "empty_template": "- no changes", + "categories": [ + { + "title": "## New Features", + "labels": ["add", "feature"] + }, + { + "title": "## Bug Fixes", + "labels": ["fix", "bug", "revert"] + }, + { + "title": "## Documentation Enhancements", + "labels": ["doc"] + }, + { + "title": "## Refactoring Efforts", + "labels": ["refactor"] + }, + { + "title": "## Miscellaneus Changes", + "labels": [] + } + ], + "ignore_labels": [ + "duplicate", "good first issue", "help wanted", "invalid", "question", "wontfix" + ], + "label_extractor": [ + { + "pattern": "(.) (.+)", + "target": "$1" + }, + { + "pattern": "(.) (.+)", + "target": "$1", + "on_property": "title" + } + ] + } + - name: Create Release - uses: mikepenz/action-gh-release@v0.2.0-a03 + uses: softprops/action-gh-release@v2 with: body: ${{steps.github_release.outputs.changelog}}