mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-27 15:07:55 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32cdbece2c | ||
|
|
6e7e994cc6 | ||
|
|
d95040ffaf | ||
|
|
129dfbe1b6 |
60
.github/workflows/release.yml
vendored
60
.github/workflows/release.yml
vendored
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Check out git repository
|
- name: Check out git repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Install Node.js
|
- name: Install Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
@@ -39,41 +39,51 @@ jobs:
|
|||||||
npx tsc
|
npx tsc
|
||||||
npx vite build
|
npx vite build
|
||||||
|
|
||||||
|
- name: Create Changelog Config
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
cat <<EOF > changelog_config.json
|
||||||
|
{
|
||||||
|
"template": "# ${{ github.ref_name }} 更新日志\n\n{{CHANGELOG}}\n\n---\n> 此更新由系统自动构建",
|
||||||
|
"categories": [
|
||||||
|
{
|
||||||
|
"title": "## 新功能",
|
||||||
|
"filter": { "pattern": "^feat", "flags": "i" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "## 修复",
|
||||||
|
"filter": { "pattern": "^fix", "flags": "i" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "## 性能与维护",
|
||||||
|
"filter": { "pattern": "^(chore|docs|perf|refactor|ci|style|test)", "flags": "i" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "## 其他改动",
|
||||||
|
"filter": { "pattern": ".*", "flags": "i" }
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ignore_labels": [],
|
||||||
|
"commitMode": true,
|
||||||
|
"empty_summary": "## 更新详情\n- 常规代码优化与维护"
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Build Changelog
|
- name: Build Changelog
|
||||||
id: build_changelog
|
id: build_changelog
|
||||||
uses: mikepenz/release-changelog-builder-action@v4
|
uses: mikepenz/release-changelog-builder-action@v5
|
||||||
with:
|
with:
|
||||||
|
configuration: "changelog_config.json"
|
||||||
outputFile: "release-notes.md"
|
outputFile: "release-notes.md"
|
||||||
configurationJson: |
|
|
||||||
{
|
|
||||||
"template": "# v${{ github.ref_name }} 更新日志\n\n{{CHANGELOG}}\n\n---\n> 此更新由系统自动构建",
|
|
||||||
"categories": [
|
|
||||||
{
|
|
||||||
"title": "## 新功能",
|
|
||||||
"filter": { "pattern": "^feat.*:.*", "flags": "i" }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "## 修复",
|
|
||||||
"filter": { "pattern": "^fix.*:.*", "flags": "i" }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "## 性能与维护",
|
|
||||||
"filter": { "pattern": "^(chore|docs|perf|refactor|ci|style|test).*:.*", "flags": "i" }
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ignore_labels": [],
|
|
||||||
"commitMode": true,
|
|
||||||
"empty_summary": "## 更新详情\n- 常规代码优化与维护"
|
|
||||||
}
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Check Changelog Content
|
- name: Check Changelog Content
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "=== RELEASE NOTES CONTENT START ==="
|
echo "=== RELEASE NOTES START ==="
|
||||||
cat release-notes.md
|
cat release-notes.md
|
||||||
echo "=== RELEASE NOTES CONTENT END ==="
|
echo "=== RELEASE NOTES END ==="
|
||||||
|
|
||||||
- name: Inject Configuration
|
- name: Inject Configuration
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user