Skip to content

Commit fe63bfa

Browse files
committed
优化:更新 GitHub Actions 工作流,新增 Node.js 环境设置及前端依赖安装和构建步骤
1 parent 15b6508 commit fe63bfa

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,23 @@ jobs:
2020
uses: actions/setup-python@v5
2121
with:
2222
python-version: '3.13.2'
23+
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '22'
2328

24-
- name: Install dependencies
29+
- name: Install Python dependencies
2530
run: |
2631
python -m pip install --upgrade pip
2732
pip install -r requirements.txt
28-
33+
34+
- name: Install Frontend dependencies and build
35+
run: |
36+
cd frontend
37+
npm install
38+
npm run build
39+
2940
- name: Build with PyInstaller
3041
run: python build.py
3142

@@ -35,7 +46,6 @@ jobs:
3546
$VERSION = (Get-Item "SD_Models_Manager_v*.exe").BaseName
3647
New-Item -ItemType Directory -Path "$VERSION"
3748
Move-Item "SD_Models_Manager_v*.exe" "$VERSION"
38-
Move-Item "templates" "$VERSION"
3949
Move-Item "static" "$VERSION"
4050
Compress-Archive -Path "$VERSION" -DestinationPath "$VERSION.zip"
4151

0 commit comments

Comments
 (0)