更新 .gitea/workflows/deploy-client.yml
deploy-server / deploy (push) Successful in 8s
Details
deploy-server / deploy (push) Successful in 8s
Details
This commit is contained in:
parent
0b6c6e60c7
commit
127e997200
|
|
@ -104,7 +104,8 @@ jobs:
|
||||||
}
|
}
|
||||||
$innerZipPath = Join-Path -Path $targetDir -ChildPath "HighErpAgent-v$version-deploy.zip"
|
$innerZipPath = Join-Path -Path $targetDir -ChildPath "HighErpAgent-v$version-deploy.zip"
|
||||||
Write-Host "Extracting $assetName -> $targetDir"
|
Write-Host "Extracting $assetName -> $targetDir"
|
||||||
& $sevenZipPath x "$encryptedZipPath" -p"$env:DEPLOY_ZIP_PASSWORD" -o"$targetDir" -aoa
|
& $sevenZipPath x "$encryptedZipPath" -p"$env:DEPLOY_ZIP_PASSWORD" -o"$targetDir" -aoa *>&1 | Out-Null
|
||||||
|
if ($LASTEXITCODE -ne 0) { throw "7z extraction failed (exit code $LASTEXITCODE)." }
|
||||||
|
|
||||||
if (-not (Test-Path -Path $innerZipPath)) { throw "Inner deploy zip not found after extracting '$assetName': '$innerZipPath'." }
|
if (-not (Test-Path -Path $innerZipPath)) { throw "Inner deploy zip not found after extracting '$assetName': '$innerZipPath'." }
|
||||||
Write-Host "Expanding inner zip -> $targetDir"
|
Write-Host "Expanding inner zip -> $targetDir"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue