-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
57 lines (53 loc) · 1.48 KB
/
Copy pathaction.yml
File metadata and controls
57 lines (53 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build-PSModule (by PSModule)
description: Build a PowerShell module to the PowerShell Gallery.
author: PSModule
branding:
icon: package
color: gray-dark
inputs:
Name:
description: Name of the module to process.
required: false
ArtifactName:
description: Name of the artifact to upload.
required: false
default: module
Debug:
description: Enable debug output.
required: false
default: 'false'
Verbose:
description: Enable verbose output.
required: false
default: 'false'
Version:
description: Specifies the version of the GitHub module to be installed. The value must be an exact version.
required: false
Prerelease:
description: Allow prerelease versions if available.
required: false
default: 'false'
WorkingDirectory:
description: The working directory where the script will run from.
required: false
default: '.'
runs:
using: composite
steps:
- name: Install-PSModuleHelpers
uses: PSModule/Install-PSModuleHelpers@v1
- name: Run Build-PSModule
shell: pwsh
id: build
env:
PSMODULE_BUILD_PSMODULE_INPUT_Name: ${{ inputs.Name }}
run: |
# Build-PSModule
${{ github.action_path }}/scripts/main.ps1
- name: Upload module artifact
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.ArtifactName }}
path: ${{ steps.build.outputs.ModuleOutputFolderPath }}
if-no-files-found: error
retention-days: 1