Skip to content

Commit bb15afe

Browse files
committed
chore: zip binaries for release
1 parent e3227b6 commit bb15afe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/start-release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,3 @@ jobs:
136136
with:
137137
package-name: Prism.Core
138138
artifacts: "Artifacts/NuGet/*.nupkg,Artifacts/NuGet/*.snupkg,Artifacts/*.zip"
139-
zipPath: 'Artifacts/Release'

build/consolidate-artifacts.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
$executionRoot = Get-Location
44
$artifactsRoot = $executionRoot, 'artifacts' -join '\'
55
$binariesRoot = $executionRoot, 'artifacts', 'binaries' -join '\'
6+
$artifactsZipPath = $executionRoot, 'artifacts', 'Release.zip' -join '\'
67
$nugetRoot = $executionRoot, 'artifacts', 'nuget' -join '\'
78
Get-ChildItem .\ -Include $binariesRoot -Recurse | ForEach-Object ($_) { Remove-Item $_.Fullname -Force -Recurse }
89
Get-ChildItem .\ -Include $nugetRoot -Recurse | ForEach-Object ($_) { Remove-Item $_.Fullname -Force -Recurse }
@@ -62,3 +63,6 @@ foreach($file in $files)
6263
}
6364

6465
Get-ChildItem $artifactsRoot | Where-Object { $_.Name -ne 'binaries' -and $_.Name -ne 'nuget' } | ForEach-Object { Remove-Item $_.FullName -Force -Recurse }
66+
67+
Compress-Archive -Path $binariesRoot -DestinationPath $artifactsZipPath -Force
68+
Remove-Item -Path $binariesRoot -Recurse -Force

0 commit comments

Comments
 (0)