diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8e043a5..85bf4f4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -63,6 +63,40 @@ jobs: git tag -a "${{ env.version }}" -m "Release ${{ env.version }}" git push origin "${{ env.version }}" + + - name: Build Changelog + id: github_release + uses: mikepenz/release-changelog-builder-action@v5 + with: + mode: "PR" + configurationJson: | + { + "template": "#{{CHANGELOG}}", + "pr_template": "- #{{TITLE}}: ##{{NUMBER}}", + "categories": [ + { + "title": "## Feature", + "labels": ["feat", "feature"] + }, + { + "title": "## Fix", + "labels": ["fix", "bug"] + }, + { + "title": "## Other", + "labels": [] + } + ], + "label_extractor": [ + { + "pattern": "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test){1}(\\([\\w\\-\\.]+\\))?(!)?: ([\\w ])+([\\s\\S]*)", + "on_property": "title", + "target": "$1" + } + ] + } + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create GitHub release if: ${{ env.SKIP != 'true' }}