Skip to content

Commit 6f5d82c

Browse files
committed
chore(workflow): 调整Facebook部署工作流
1 parent 24b4338 commit 6f5d82c

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/DeployFacebook.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
deploy:
14-
runs-on: ubuntu-latest
14+
runs-on: windows-latest
1515

1616
steps:
1717
- name: Checkout code
@@ -29,16 +29,14 @@ jobs:
2929
# 读取并执行打包命令
3030
- name: Build project
3131
run: |
32-
COMMAND=$(cat facebook/packaging_script/packaging.text)
33-
# 替换分号为冒号以适配Linux系统
34-
COMMAND=$(echo "$COMMAND" | sed 's/;/:/g')
35-
eval $COMMAND
32+
$command = Get-Content -Path "facebook\packaging_script\packaging.text"
33+
Invoke-Expression $command
3634
3735
- name: Create release folder and zip executable
3836
run: |
39-
mkdir -p release
40-
apt-get install zip
41-
zip release/FBreptilever.zip dist/FBreptilever.exe
37+
New-Item -ItemType Directory -Force -Path release\
38+
# 将 FBrereptilever.exe 压缩为 ZIP 文件
39+
Compress-Archive -Path "dist\FBreptilever.exe" -DestinationPath "release\FBreptilever.zip"
4240
4341
- name: Upload to server via FTP
4442
uses: SamKirkland/FTP-Deploy-Action@v4.3.6

0 commit comments

Comments
 (0)