Skip to content

Commit 929825f

Browse files
committed
.
1 parent 255ac1b commit 929825f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/package.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ jobs:
232232
. .\ci\PSModuleHelpers.ps1
233233
$PSModuleOutputPath = Join-Path ${{ runner.temp }} ${{ matrix.project }} "PowerShell"
234234
$PSModuleZipFilePath = Get-ChildItem -Path $PSModuleOutputPath "DevolutionsGateway-ps-*.zip" | Select-Object -First 1
235-
Expand-Archive -Path $PSModuleZipFilePath -Destination $PSModuleOutputPath
235+
7z x "$PSModuleZipFilePath" -o"$PSModuleOutputPath" -aoa -y
236236
$DGatewayPSModulePath = Join-Path $PSModuleOutputPath DevolutionsGateway
237237
238238
$IncludePattern = @('*.ps1', '*.psd1', '*.psm1', 'DevolutionsGateway.dll')
@@ -251,6 +251,8 @@ jobs:
251251
Remove-Item $PSModuleZipFilePath -ErrorAction SilentlyContinue | Out-Null
252252
# For some reason, Compress-Archive is creating a corrupted archive.
253253
7z a -tzip -mx=9 -r -- "$PSModuleZipFilePath" "$DGatewayPSModulePath\*"
254+
# Verify the archive.
255+
7z t "$PSModuleZipFilePath"
254256
255257
$PSModuleParentPath = Split-Path $DGatewayPSModulePath -Parent
256258

0 commit comments

Comments
 (0)