更新 .gitea/workflows/deploy-server.yml

This commit is contained in:
lxmou666 2026-06-11 00:34:56 +08:00
parent a85139b71e
commit 0b6c6e60c7
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ jobs:
}
Write-Host "Extracting $assetName -> $deployRoot"
& $sevenZipPath x "$encryptedZipPath" -p"$env:DEPLOY_ZIP_PASSWORD" -o"$deployRoot" -aoa
& $sevenZipPath x "$encryptedZipPath" -p"$env:DEPLOY_ZIP_PASSWORD" -o"$deployRoot" -aoa *>&1 | Out-Null
if ($LASTEXITCODE -ne 0) { throw "7z extraction failed (exit code $LASTEXITCODE)." }
Remove-Item -Path $encryptedZipPath -Force
Write-Host "Starting service $serviceName"