mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
pipeline file changes
This commit is contained in:
parent
17dc32a18e
commit
2eacc92203
1 changed files with 7 additions and 0 deletions
|
|
@ -64,6 +64,13 @@ stages:
|
||||||
script: |
|
script: |
|
||||||
$appVersion = $env:DEPLOY_BUILDNUMBER
|
$appVersion = $env:DEPLOY_BUILDNUMBER
|
||||||
$appVersionShort = $appVersion.Substring(0, $appVersion.LastIndexOf('.'))
|
$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 common files
|
||||||
Copy-Item -Path "$env:DEPLOY_PUBLISHDIRECTORY\en-US.xaml" -Destination "$env:DEPLOY_REPODIRECTORY" -Force
|
Copy-Item -Path "$env:DEPLOY_PUBLISHDIRECTORY\en-US.xaml" -Destination "$env:DEPLOY_REPODIRECTORY" -Force
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue