Skip to content

Commit

Permalink
Do not remove packages folder in ci (microsoft#3555)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haplois committed Apr 8, 2022
1 parent 9b6ed1a commit d2a1b22
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit d2a1b22

Please sign in to comment.