From f321c465d5dee548b6165ad16435ab676f780a2f Mon Sep 17 00:00:00 2001 From: cc <98377878+hicccc77@users.noreply.github.com> Date: Sat, 10 Jan 2026 14:10:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=87=8F=E5=B0=91=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=8C=85=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 282e40b..7391e59 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,12 +39,24 @@ jobs: outputFile: "release-notes.md" configurationJson: | { + "template": "# v${{ github.ref_name }} 版本发布\n\n{{CHANGELOG}}\n\n---\n> 此更新由系统自动构建", "categories": [ - { "title": "## 🚀 Features", "labels": ["feat", "feature"] }, - { "title": "## 🐛 Fixes", "labels": ["fix", "bug"] }, - { "title": "## 🧰 Maintenance", "labels": ["chore", "refactor", "docs", "perf"] } + { + "title": "## 新功能", + "filter": { "pattern": "^feat:.*", "flags": "i" } + }, + { + "title": "## 修复", + "filter": { "pattern": "^fix:.*", "flags": "i" } + }, + { + "title": "## 性能与维护", + "filter": { "pattern": "^(chore|docs|perf|refactor):.*", "flags": "i" } + } ], - "template": "# Release Notes\n\n{{CHANGELOG}}" + "ignore_labels": true, + "commitMode": true, + "empty_summary": "## 更新详情\n- 常规代码优化与维护" } env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -52,5 +64,5 @@ jobs: - name: Package and Publish env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - run: npx electron-builder --publish always "-c.releaseInfo.releaseNotesFile=release-notes.md" \ No newline at end of file + run: | + npx electron-builder --publish always "-c.releaseInfo.releaseNotesFile=release-notes.md" \ No newline at end of file