diff --git a/.github/workflows/start-release.yml b/.github/workflows/start-release.yml index 5ef0d29118..671c756857 100644 --- a/.github/workflows/start-release.yml +++ b/.github/workflows/start-release.yml @@ -136,4 +136,3 @@ jobs: with: package-name: Prism.Core artifacts: "Artifacts/NuGet/*.nupkg,Artifacts/NuGet/*.snupkg,Artifacts/*.zip" - zipPath: 'Artifacts/Release' diff --git a/build/consolidate-artifacts.ps1 b/build/consolidate-artifacts.ps1 index 06c5fd7955..8385ad353f 100644 --- a/build/consolidate-artifacts.ps1 +++ b/build/consolidate-artifacts.ps1 @@ -3,6 +3,7 @@ $executionRoot = Get-Location $artifactsRoot = $executionRoot, 'artifacts' -join '\' $binariesRoot = $executionRoot, 'artifacts', 'binaries' -join '\' +$artifactsZipPath = $executionRoot, 'artifacts', 'Release.zip' -join '\' $nugetRoot = $executionRoot, 'artifacts', 'nuget' -join '\' Get-ChildItem .\ -Include $binariesRoot -Recurse | ForEach-Object ($_) { Remove-Item $_.Fullname -Force -Recurse } Get-ChildItem .\ -Include $nugetRoot -Recurse | ForEach-Object ($_) { Remove-Item $_.Fullname -Force -Recurse } @@ -62,3 +63,6 @@ foreach($file in $files) } Get-ChildItem $artifactsRoot | Where-Object { $_.Name -ne 'binaries' -and $_.Name -ne 'nuget' } | ForEach-Object { Remove-Item $_.FullName -Force -Recurse } + +Compress-Archive -Path $binariesRoot -DestinationPath $artifactsZipPath -Force +Remove-Item -Path $binariesRoot -Recurse -Force