We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 716bc55 commit 69d639eCopy full SHA for 69d639e
.github/workflows/electron-build.yml
@@ -0,0 +1,34 @@
1
+name: Build Electron App
2
+
3
+on:
4
+ push:
5
+ branches: [ main ]
6
7
+jobs:
8
+ build:
9
+ strategy:
10
+ matrix:
11
+ platform: [windows-latest]
12
+ runs-on: ${{ matrix.platform }}
13
14
+ steps:
15
+ - uses: actions/checkout@v4
16
17
+ - name: 设置 Node.js
18
+ uses: actions/setup-node@v3
19
+ with:
20
+ node-version: '18'
21
22
+ - name: 安装依赖
23
+ working-directory: ./thchat-ui
24
+ run: npm install
25
26
+ - name: 构建项目
27
28
+ run: npm run electron:dist
29
30
+ - name: 上传文件
31
+ uses: actions/upload-artifact@v3
32
33
+ name: THChatUI-${{ matrix.platform }}
34
+ path: ./thchat-ui/dist_electron/**
0 commit comments