This action creates a PowerShell manifest and optionally handles required assemblies.
Required The name of the PowerShell module.
Optional The source directory containing the module (relative to the workspace). Default is the root of the workspace.
Optional The output directory for the manifest (relative to the workspace). The default is `output``.
Required Comma-separated list of import folders.
Optional Comma-separated list of assembly directories.
Optional Enable debug mode. The default is `false``.
name: Build PowerShell Moduleon:
push:
branches:
- mainpull_request:
branches:
- mainjobs:
build:
runs-on: windows-lateststeps:
- name: Checkout repositoryuses: actions/checkout@v4with:
path: 'Repo'
- name: Create PowerShell Manifestuses: mod-posh/CreatePowerShellManifest@v0.0.1.0with:
ModuleName: 'SpnLibrary'Source: 'Repo'Imports: 'public'Debug: 'true'
- name: Create PowerShell Moduleuses: mod-posh/CreatePowerShellModule@v0.0.1.0with:
ModuleName: 'SpnLibrary'Source: 'Repo'Imports: 'public'Debug: 'true'
- name: Test PowerShell Moduleuses: mod-posh/TestpowerShellModule@mainwith:
ModuleName: 'SpnLibrary'Source: 'Repo'Debug: 'true'
- name: Upload PowerShell Moduleuses: actions/upload-artifact@v4with:
name: your-module-outputpath: ${{ github.workspace }}/output