|
7 | 7 | ) |
8 | 8 | try |
9 | 9 | { |
10 | | - Write-Host "::group::Starting the BuildModule task..." |
| 10 | + Write-Host "::group::Starting the Create PowerShell Module task..." |
11 | 11 | Write-Host "::group::Setting up variables" |
12 | 12 |
|
13 | 13 | if ([string]::IsNullOrEmpty($Source)) |
|
28 | 28 | $outputPath = "$($env:GITHUB_WORKSPACE)\$($Output)" |
29 | 29 | } |
30 | 30 |
|
31 | | - $artifactsPath = "$($env:GITHUB_WORKSPACE)\artifacts" |
32 | 31 | $modulePath = "$($outputPath)\$($ModuleName).psm1" |
33 | 32 |
|
34 | 33 | if ($Debug) |
35 | 34 | { |
36 | | - Write-Host "::debug::ModuleName : $($ModuleName)" |
37 | | - Write-Host "::debug::SourcePath : $($sourcePath)" |
38 | | - Write-Host "::debug::OutputPath : $($outputPath)" |
39 | | - Write-Host "::debug::ModulePath : $($modulePath)" |
40 | | - Write-Host "::debug::Imports : $($imports)" |
41 | | - Write-Host "::debug::artifactsPath : $($artifactsPath)" |
| 35 | + Write-Host "::debug::ModuleName : $($ModuleName)" |
| 36 | + Write-Host "::debug::SourcePath : $($sourcePath)" |
| 37 | + Write-Host "::debug::OutputPath : $($outputPath)" |
| 38 | + Write-Host "::debug::ModulePath : $($modulePath)" |
| 39 | + Write-Host "::debug::Imports : $($imports)" |
42 | 40 | } |
43 | 41 |
|
44 | 42 | $stringbuilder = [System.Text.StringBuilder]::new() |
|
57 | 55 | New-Item -ItemType Directory -Path $outputPath | Out-Null |
58 | 56 | } |
59 | 57 |
|
60 | | - Write-Host "Copying Module manifest" |
61 | | - Copy-Item -Path "$($artifactsPath)\$($ModuleName)\*" -Destination $outputPath -Recurse |
62 | | - Write-Host "::endgroup::" |
63 | | - |
64 | 58 | Write-Host "::group::Processing import folders..." |
65 | 59 | foreach ($importFolder in $importFolders) |
66 | 60 | { |
|
0 commit comments