From d2a1b22a9c07d13f3601f8fc6b30f2de788a189a Mon Sep 17 00:00:00 2001 From: Medeni Baykal <433724+Haplois@users.noreply.github.com> Date: Fri, 8 Apr 2022 10:47:51 +0200 Subject: [PATCH] Do not remove packages folder in ci (#3555) --- scripts/build.ps1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/build.ps1 b/scripts/build.ps1 index 4b059a5721..373bf689a7 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -866,11 +866,12 @@ function Create-NugetPackages { Copy-Item (Join-Path $env:TP_PACKAGE_PROJ_DIR "Icon.png") $stagingDir -Force - # Remove all locally built nuget packages before we start creating them - # we are leaving them in the folder after uzipping them for easier review. - # we should exclude "manifest" and "source-build" folders not to break compatibility. - if (Test-Path $packageOutputDir) { - Remove-Item $packageOutputDir -Recurse -Force -Exclude "manifest","source-build" + if (-not $TPB_CIBuild) { + # Remove all locally built nuget packages before we start creating them + # we are leaving them in the folder after uzipping them for easier review. + if (Test-Path $packageOutputDir) { + Remove-Item $packageOutputDir -Recurse -Force + } } if (-not (Test-Path $packageOutputDir)) {