This action creates a PowerShell module from source files.
Required The name of the PowerShell module.
Optional The source directory containing the module (relative to the workspace).
Optional TThe output directory for storing the module (relative to the workspace).
Required Comma-separated list of import folders.
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@v2with:
path: MySuperModule # Custom path for the checkout
- name: Create PowerShell Manifestuses: your-username/your-repo@v1 # Replace with your repository details for the createpowershellmanifest actionwith:
ModuleName: 'your-module'Source: 'MySuperModule'# Use the custom path hereDebug: 'true'
- name: Create PowerShell Moduleuses: your-username/your-repo@v1 # Replace with your repository details for the createpowershellmodule actionwith:
ModuleName: 'your-module'Source: 'MySuperModule'# Use the custom path hereImports: 'folder1,folder2'Debug: 'true'
- name: Upload PowerShell Moduleuses: actions/upload-artifact@v2with:
name: your-module-outputpath: ${{ github.workspace }}/output