File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 34
34
steps :
35
35
- name : Run Build-PSModule
36
36
uses : PSModule/GitHub-Script@v1
37
+ id : build
37
38
env :
38
39
PSMODULE_BUILD_PSMODULE_INPUT_Name : ${{ inputs.Name }}
39
40
PSMODULE_BUILD_PSMODULE_INPUT_Path : ${{ inputs.Path }}
45
46
Script : |
46
47
# Build-PSModule
47
48
${{ github.action_path }}/scripts/main.ps1
49
+
50
+ - name : Upload module artifact
51
+ uses : actions/upload-artifact@v4
52
+ with :
53
+ name : module
54
+ path : outputs/module/${{ fromJson(steps.build.outputs.result).ModuleName }}
55
+ if-no-files-found : error
56
+ retention-days : 1
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ LogGroup 'Loading inputs' {
22
22
$env: PSMODULE_BUILD_PSMODULE_INPUT_Name
23
23
}
24
24
Write-Host " Module name: [$moduleName ]"
25
+ Set-GitHubOutput - Name ModuleName - Value $moduleName
25
26
26
27
$sourceFolderPath = Join-Path - Path $env: PSMODULE_BUILD_PSMODULE_INPUT_Path - ChildPath ' src'
27
28
if (-not (Test-Path - Path $sourceFolderPath )) {
You can’t perform that action at this time.
0 commit comments