Skip to content

Commit 13835df

Browse files
committed
wcsndmy zsb c i
1 parent 93bf287 commit 13835df

4 files changed

Lines changed: 375 additions & 74 deletions

File tree

.github/workflows/build.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,39 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11+
build-frontend:
12+
name: Build Frontend
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '24'
22+
23+
- name: Install pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
package_json_file: MaiChartManager/Front/package.json
27+
28+
- name: Install and Build
29+
working-directory: MaiChartManager/Front
30+
run: |
31+
pnpm install
32+
pnpm build
33+
34+
- name: Upload wwwroot
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: wwwroot
38+
path: MaiChartManager/wwwroot
39+
1140
build:
1241
name: Build
1342
runs-on: self-hosted
43+
needs: build-frontend
1444

1545
steps:
1646
- run: git config --global core.longPaths true
@@ -43,6 +73,11 @@ jobs:
4373
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
4474
}
4575
76+
- name: Download wwwroot
77+
uses: actions/download-artifact@v4
78+
with:
79+
name: wwwroot
80+
path: MaiChartManager/wwwroot
4681

4782
- name: Build
4883
shell: powershell
@@ -90,3 +125,8 @@ jobs:
90125
91126
# 3. 执行更新脚本
92127
& "D:\sign\mcm-canary-update.ps1" -Version $version
128+
129+
- name: Delete wwwroot artifact
130+
uses: geekyeggo/delete-artifact@v5
131+
with:
132+
name: wwwroot

MaiChartManager/Front/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
"@types/wicg-file-system-access": "^2023.10.7",
2727
"@unocss/preset-icons": "^66.6.2",
2828
"@unocss/reset": "^66.6.2",
29-
"@vitejs/plugin-vue": "^6.0.4",
30-
"@vitejs/plugin-vue-jsx": "^5.1.4",
29+
"@vitejs/plugin-vue": "^5.2.4",
30+
"@vitejs/plugin-vue-jsx": "^4.2.0",
3131
"@vueuse/core": "^14.2.1",
3232
"@zip.js/zip.js": "^2.8.21",
3333
"animate.css": "^4.1.1",
@@ -46,7 +46,7 @@
4646
"unity-webgl": "^4.4.3",
4747
"unocss": "^66.6.2",
4848
"virtua": "^0.48.6",
49-
"vite": "^7.3.1",
49+
"vite": "^6.4.1",
5050
"vite-svg-loader": "^5.1.0",
5151
"vue": "^3.5.29",
5252
"vue-contenteditable": "^4.1.0",

0 commit comments

Comments
 (0)