ci(wrapper): changes to clean the publish folder

This commit is contained in:
2025-07-18 10:28:16 -05:00
parent 528d7af031
commit 5cc1fbe919
3 changed files with 17 additions and 8 deletions

View File

@@ -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