mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
ci: fix pdcc publish workdir bootstrap
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -976,13 +976,22 @@ jobs:
|
||||
}
|
||||
$env:PDC_SigningKey = $signingKey
|
||||
|
||||
$workDir = Join-Path $PWD "pdc-work"
|
||||
$stageRoot = Join-Path $PWD "pdc-stage"
|
||||
$payloadRoot = Join-Path $PWD "payload-artifacts"
|
||||
$installerRoot = Join-Path $PWD "installer-artifacts"
|
||||
$outRoot = Join-Path $PWD "pdc-output"
|
||||
$publishRoot = Join-Path $outRoot "published"
|
||||
$client = Join-Path $PWD "pdcc/PhainonDistributionCenter.Client"
|
||||
$config = Join-Path $PWD "pdc-work/phainon.resolved.yml"
|
||||
$config = Join-Path $workDir "phainon.resolved.yml"
|
||||
|
||||
New-Item -ItemType Directory -Path $workDir -Force | Out-Null
|
||||
if (-not (Test-Path -LiteralPath $config)) {
|
||||
throw "Resolved PDCC config was not found: $config"
|
||||
}
|
||||
if (-not (Test-Path -LiteralPath $client)) {
|
||||
throw "PDCC client was not found: $client"
|
||||
}
|
||||
|
||||
if (Test-Path $stageRoot) {
|
||||
Remove-Item -LiteralPath $stageRoot -Recurse -Force
|
||||
|
||||
Reference in New Issue
Block a user