File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments