Skip to content

Commit 4ffa68e

Browse files
committed
.
1 parent 9d8a232 commit 4ffa68e

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,17 +467,22 @@ jobs:
467467
- name: Build module
468468
shell: pwsh
469469
run: |
470+
$PSModuleVersion = "${{ needs.preflight.outputs.version }}"
471+
470472
./powershell/build.ps1
473+
471474
$PSModuleName = "DevolutionsGateway"
472-
$PSModuleVersion = "${{ needs.preflight.outputs.version }}"
473-
$PSModuleOutputPath = Join-Path "powershell" "package" $PSModuleName
474-
Write-Host "PSModuleOutputPath = $PSModuleOutputPath"
475+
$PSModuleParentPath = Join-Path "powershell" "package"
476+
Write-Host "PSModuleOutputPath = $PSModuleParentPath"
477+
475478
$PSStagingPath = Join-Path "powershell-staging" "PowerShell"
476479
Write-Host "PSStagingPath = $PSStagingPath"
477480
New-Item -Path $PSStagingPath -ItemType Directory | Out-Null
481+
478482
$PSModuleTarFilePath = Join-Path $PSStagingPath "$PSModuleName-ps-$PSModuleVersion.tar"
479483
Write-Host "PSModuleTarFilePath = $PSModuleTarFilePath"
480-
tar -cvf "$PSModuleTarFilePath" -C "$PSModuleOutputPath" "$PSModuleName"
484+
485+
tar -cvf "$PSModuleTarFilePath" -C "$PSModuleParentPath" "$PSModuleName"
481486
482487
- name: Pester tests
483488
shell: pwsh

0 commit comments

Comments
 (0)