Skip to content

Commit 69d639e

Browse files
committed
feat(app): github build app actions
1 parent 716bc55 commit 69d639e

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
working-directory: ./thchat-ui
28+
run: npm run electron:dist
29+
30+
- name: 上传文件
31+
uses: actions/upload-artifact@v3
32+
with:
33+
name: THChatUI-${{ matrix.platform }}
34+
path: ./thchat-ui/dist_electron/**

0 commit comments

Comments
 (0)