ci(wrapper): changes to clean the publish folder
This commit is contained in:
@@ -122,6 +122,13 @@ function Update-BuildNumber {
|
|||||||
|
|
||||||
Write-Host "Building wrapper"
|
Write-Host "Building wrapper"
|
||||||
Push-Location $rootDir/LstWrapper
|
Push-Location $rootDir/LstWrapper
|
||||||
|
#remove the publish folder as we done need it
|
||||||
|
if (-not (Test-Path "/publish")) {
|
||||||
|
Write-Host "The publish folder is already deleted nothing else to do"
|
||||||
|
} else {
|
||||||
|
Remove-Item -LiteralPath "/publish" -Force -Recurse
|
||||||
|
}
|
||||||
|
|
||||||
dotnet publish -c Release -o ./publish
|
dotnet publish -c Release -o ./publish
|
||||||
|
|
||||||
Pop-Location
|
Pop-Location
|
||||||
@@ -156,7 +163,7 @@ try {
|
|||||||
npm run release
|
npm run release
|
||||||
|
|
||||||
# deleteing the temp folder so we always cleaned up
|
# deleteing the temp folder so we always cleaned up
|
||||||
Delete-Tmp-Folder
|
|
||||||
if ($LASTEXITCODE -ne 0) {
|
if ($LASTEXITCODE -ne 0) {
|
||||||
throw "Failed to create Gitea release"
|
throw "Failed to create Gitea release"
|
||||||
}
|
}
|
||||||
@@ -166,10 +173,10 @@ try {
|
|||||||
Write-Warning "Release process failed: $_"
|
Write-Warning "Release process failed: $_"
|
||||||
|
|
||||||
# deleteing the temp folder so we always cleaned up
|
# deleteing the temp folder so we always cleaned up
|
||||||
Delete-Tmp-Folder
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Delete-Tmp-Folder
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -72,16 +72,18 @@ $tempStageDir = New-Item -ItemType Directory -Path (Join-Path $env:TEMP "lst_sta
|
|||||||
# Copy files to organized structure
|
# Copy files to organized structure
|
||||||
$filesToCopy = @(
|
$filesToCopy = @(
|
||||||
@{ Source = "backend\lst_backend.exe"; Destination = "backend\lst_backend.exe" },
|
@{ Source = "backend\lst_backend.exe"; Destination = "backend\lst_backend.exe" },
|
||||||
|
@{ Source = "backend\docs"; Destination = "backend\docs\" },
|
||||||
|
@{ Source = "backend\frontend"; Destination = "backend\frontend\" },
|
||||||
@{ Source = "LstWrapper\publish"; Destination = "lstwrapper\" },
|
@{ Source = "LstWrapper\publish"; Destination = "lstwrapper\" },
|
||||||
@{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" },
|
#@{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" },
|
||||||
@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" },
|
#@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" },
|
||||||
@{ Source = "frontend\.output"; Destination = "frontend\.output" },
|
#@{ Source = "frontend\.output"; Destination = "frontend\.output" },
|
||||||
@{ Source = "frontend\public"; Destination = "frontend\public" },
|
#@{ Source = "frontend\public"; Destination = "frontend\public" },
|
||||||
@{ Source = "package.json"; Destination = "package.json" },
|
@{ Source = "package.json"; Destination = "package.json" },
|
||||||
@{ Source = "CHANGELOG.md"; Destination = "CHANGELOG.md" },
|
@{ Source = "CHANGELOG.md"; Destination = "CHANGELOG.md" },
|
||||||
@{ Source = "README.md"; Destination = "README.md" },
|
@{ Source = "README.md"; Destination = "README.md" },
|
||||||
# scripts to be copied over
|
# scripts to be copied over
|
||||||
@{ Source = "scripts\tmp"; Destination = "scripts\tmp" }
|
@{ Source = "scripts\tmp"; Destination = "tmp" }
|
||||||
@{ Source = "scripts\iisControls.ps1"; Destination = "scripts\iisControls.ps1" }
|
@{ Source = "scripts\iisControls.ps1"; Destination = "scripts\iisControls.ps1" }
|
||||||
# docs
|
# docs
|
||||||
# @{ Source = "lst-docs\build"; Destination = "lst-docs\build" }
|
# @{ Source = "lst-docs\build"; Destination = "lst-docs\build" }
|
||||||
|
|||||||
0
scripts/serviceController.ps1
Normal file
0
scripts/serviceController.ps1
Normal file
Reference in New Issue
Block a user