pipeline file changes

This commit is contained in:
Brett Hewitson 2022-12-23 16:29:57 +10:00
parent 17dc32a18e
commit 2eacc92203

View file

@ -64,6 +64,13 @@ stages:
script: |
$appVersion = $env:DEPLOY_BUILDNUMBER
$appVersionShort = $appVersion.Substring(0, $appVersion.LastIndexOf('.'))
if (!(Test-Path $env:DEPLOY_PUBLISHDIRECTORY)) {
throw "Source directory does not exist or could not be found ($env:DEPLOY_PUBLISHDIRECTORY)"
}
if (!(Test-Path $env:DEPLOY_REPODIRECTORY)) {
New-Item -Path "$env:DEPLOY_REPODIRECTORY" -ItemType Directory -Force
}
# copy common files
Copy-Item -Path "$env:DEPLOY_PUBLISHDIRECTORY\en-US.xaml" -Destination "$env:DEPLOY_REPODIRECTORY" -Force