-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
40 lines (36 loc) · 1.14 KB
/
action.yml
File metadata and controls
40 lines (36 loc) · 1.14 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
name: Build-PSModule
description: Build a PowerShell module to the PowerShell Gallery.
author: PSModule
inputs:
Name:
description: Name of the module to process.
required: false
ArtifactName:
description: Name of the artifact to upload.
required: false
default: module
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@ed79b6e3aa8c9cd3d30ab2bf02ea6bd4687b9c74 # v1.0.7
- name: Run Build-PSModule
shell: pwsh
id: build
working-directory: ${{ inputs.WorkingDirectory }}
env:
PSMODULE_BUILD_PSMODULE_INPUT_Name: ${{ inputs.Name }}
run: |
# Build-PSModule
${{ github.action_path }}/src/main.ps1
- name: Upload module artifact
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: ${{ inputs.ArtifactName }}
path: ${{ steps.build.outputs.ModuleOutputFolderPath }}
if-no-files-found: error
retention-days: 1