ci(wrapper): changes to clean the publish folder
This commit is contained in:
@@ -122,6 +122,13 @@ function Update-BuildNumber {
|
||||
|
||||
Write-Host "Building wrapper"
|
||||
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
|
||||
|
||||
Pop-Location
|
||||
@@ -156,7 +163,7 @@ try {
|
||||
npm run release
|
||||
|
||||
# deleteing the temp folder so we always cleaned up
|
||||
Delete-Tmp-Folder
|
||||
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Failed to create Gitea release"
|
||||
}
|
||||
@@ -166,10 +173,10 @@ try {
|
||||
Write-Warning "Release process failed: $_"
|
||||
|
||||
# deleteing the temp folder so we always cleaned up
|
||||
Delete-Tmp-Folder
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
Delete-Tmp-Folder
|
||||
break
|
||||
|
||||
|
||||
|
||||
@@ -72,16 +72,18 @@ $tempStageDir = New-Item -ItemType Directory -Path (Join-Path $env:TEMP "lst_sta
|
||||
# Copy files to organized structure
|
||||
$filesToCopy = @(
|
||||
@{ 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 = "frontend\.nitro"; Destination = "frontend\.nitro" },
|
||||
@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" },
|
||||
@{ Source = "frontend\.output"; Destination = "frontend\.output" },
|
||||
@{ Source = "frontend\public"; Destination = "frontend\public" },
|
||||
#@{ Source = "frontend\.nitro"; Destination = "frontend\.nitro" },
|
||||
#@{ Source = "frontend\.tanstack"; Destination = "frontend\.tanstack" },
|
||||
#@{ Source = "frontend\.output"; Destination = "frontend\.output" },
|
||||
#@{ Source = "frontend\public"; Destination = "frontend\public" },
|
||||
@{ Source = "package.json"; Destination = "package.json" },
|
||||
@{ Source = "CHANGELOG.md"; Destination = "CHANGELOG.md" },
|
||||
@{ Source = "README.md"; Destination = "README.md" },
|
||||
# scripts to be copied over
|
||||
@{ Source = "scripts\tmp"; Destination = "scripts\tmp" }
|
||||
@{ Source = "scripts\tmp"; Destination = "tmp" }
|
||||
@{ Source = "scripts\iisControls.ps1"; Destination = "scripts\iisControls.ps1" }
|
||||
# docs
|
||||
# @{ 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