Skip to content

Commit 06104da

Browse files
committed
ci(github actions): 修复windows平台打包归档逻辑
将原有的zip打包命令替换为适配windows环境的Compress-Archive命令,同时添加平台判断条件仅在windows runner执行该步骤
1 parent 77920a5 commit 06104da

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ jobs:
5757
run: |
5858
mkdir -p build/bin/frontend
5959
cp -rf frontend/dist build/bin/frontend/
60-
cd build/bin && zip -r ../vibe-time-windows-amd64.zip . && cd ../..
60+
61+
- name: Archive Windows
62+
if: matrix.platform == 'windows'
63+
run: Compress-Archive -Path build/bin/vibe-time.exe,build/bin/frontend -DestinationPath vibe-time-windows-amd64.zip
6164

6265
- name: Package Linux
6366
if: matrix.platform == 'linux'

0 commit comments

Comments
 (0)