Skip to content

Commit 9d8a232

Browse files
committed
.
1 parent 8df0fc0 commit 9d8a232

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

.github/workflows/package.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)