提交 0a4aa69a 编写于 作者: D Dan Siegel

ci: fixing cleanup step

上级 3633b8d1
......@@ -12,11 +12,12 @@ foreach($file in $files)
{
if ($file -match ($platforms -join '|') -and $file -match ($core -join '|'))
{
# Ignore Prism.Core / Prism.Events built with platforms
continue
}
elseif ($file -like "*.nupkg" -or $file -like "*.snupkg")
{
Write-Information "Copying $file to .\artifacts\nuget"
Write-Host "Copying $file to .\artifacts\nuget"
Copy-Item $file.FullName .\artifacts\nuget
}
else
......@@ -31,17 +32,11 @@ foreach($file in $files)
$copyPath = Join-Path .\artifacts\binaries -ChildPath $parentDirName
Write-Information "Creating $copyPath"
Write-Host "Creating $copyPath"
New-Item -Path $copyPath -ItemType Directory -Force
Write-Information "Copying $file to $copyPath"
Write-Host "Copying $file to $copyPath"
Copy-Item $file.FullName $copyPath
}
}
Remove-Item artifacts\Core -Recurse
Remove-Item artifacts\Wpf -Recurse
Remove-Item artifacts\Forms -Recurse
Remove-Item artifacts\Uno -Recurse
Remove-Item artifacts\Maui -Recurse
Get-ChildItem .\artifacts\nuget | ForEach-Object { Write-Host $_.FullName }
Get-ChildItem .\artifacts | Where-Object { $_.Name -ne 'binaries' -and $_.Name -ne 'nuget' } | ForEach-Object { Remove-Item $_.FullName -Force -Recurse }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册