diff --git a/.github/scripts/Package-Windows.ps1 b/.github/scripts/Package-Windows.ps1 index 819fe54..52317be 100644 --- a/.github/scripts/Package-Windows.ps1 +++ b/.github/scripts/Package-Windows.ps1 @@ -79,17 +79,18 @@ function Package { Invoke-External iscc ${IsccFile} /O"${ProjectRoot}/release" /F"${OutputName}-Installer" Remove-Item -Path Package -Recurse Pop-Location -Stack BuildTemp - } else { - Log-Group "Archiving ${ProductName}..." - $CompressArgs = @{ - Path = (Get-ChildItem -Path "${ProjectRoot}/release/${Configuration}" -Exclude "${OutputName}*.*") - CompressionLevel = 'Optimal' - DestinationPath = "${ProjectRoot}/release/${OutputName}.zip" - Verbose = ($Env:CI -ne $null) - } - - Compress-Archive -Force @CompressArgs } + + Log-Group "Archiving ${ProductName}..." + $CompressArgs = @{ + Path = (Get-ChildItem -Path "${ProjectRoot}/release/${Configuration}" -Exclude "${OutputName}*.*") + CompressionLevel = 'Optimal' + DestinationPath = "${ProjectRoot}/release/${OutputName}.zip" + Verbose = ($Env:CI -ne $null) + } + + Compress-Archive -Force @CompressArgs + Log-Group }