更新 .gitea/workflows/deploy-server.yml
This commit is contained in:
parent
a85139b71e
commit
0b6c6e60c7
|
|
@ -107,7 +107,8 @@ jobs:
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Extracting $assetName -> $deployRoot"
|
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
|
Remove-Item -Path $encryptedZipPath -Force
|
||||||
|
|
||||||
Write-Host "Starting service $serviceName"
|
Write-Host "Starting service $serviceName"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue