File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ jobs:
477477 New-Item -Path $PSStagingPath -ItemType Directory | Out-Null
478478 $PSModuleTarFilePath = Join-Path $PSStagingPath "$PSModuleName-ps-$PSModuleVersion.tar"
479479 Write-Host "PSModuleTarFilePath = $PSModuleTarFilePath"
480- tar -cvf "$PSModuleTarFilePath" -C "$PSModuleOutputPath"
480+ tar -cvf "$PSModuleTarFilePath" -C "$PSModuleOutputPath" "$PSModuleName"
481481
482482 - name : Pester tests
483483 shell : pwsh
Original file line number Diff line number Diff line change @@ -250,18 +250,18 @@ jobs:
250250
251251 Remove-Item $PSModuleTarFilePath -ErrorAction SilentlyContinue | Out-Null
252252
253+ $PSModuleParentPath = Split-Path $DGatewayPSModulePath -Parent
254+
253255 # For some reason, when using Compress-Archive we end up with a corrupted archive once in the release.yml workflow.
254256 # Maybe because of the double compression via the upload-artifact action?
255257 # With a tarball archive, there is no problem.
256258 Write-Host "Recreate archive at "$PSModuleTarFilePath""
257- tar -cvf "$PSModuleTarFilePath" -C "$DGatewayPSModulePath"
259+ tar -cvf "$PSModuleTarFilePath" -C "$PSModuleParentPath" DevolutionsGateway
258260
259261 # Verify the the archive by extracting it to /dev/null.
260262 Write-Host "Verify archive at "$PSModuleTarFilePath""
261263 tar -xvf "$PSModuleTarFilePath" -C /dev/null
262264
263- $PSModuleParentPath = Split-Path $DGatewayPSModulePath -Parent
264-
265265 Set-PSDebug -Off # Too many traces are logged when running New-ModulePackage.
266266 New-ModulePackage $DGatewayPSModulePath $PSModuleParentPath
267267
You can’t perform that action at this time.
0 commit comments