Skip to content

Commit

Permalink
chore: zip binaries for release
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Oct 7, 2023
1 parent e3227b6 commit bb15afe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/start-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,3 @@ jobs:
with:
package-name: Prism.Core
artifacts: "Artifacts/NuGet/*.nupkg,Artifacts/NuGet/*.snupkg,Artifacts/*.zip"
zipPath: 'Artifacts/Release'
4 changes: 4 additions & 0 deletions build/consolidate-artifacts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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

0 comments on commit bb15afe

Please sign in to comment.