更新 .gitea/workflows/deploy-client.yml
deploy-server / deploy (push) Successful in 8s Details

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

View File

@ -104,7 +104,8 @@ jobs:
}
$innerZipPath = Join-Path -Path $targetDir -ChildPath "HighErpAgent-v$version-deploy.zip"
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'." }
Write-Host "Expanding inner zip -> $targetDir"