Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Create PowerShell Module GitHub Action

This action creates a PowerShell module from source files.

Inputs

ModuleName

Required The name of the PowerShell module.

Source

Optional The source directory containing the module (relative to the workspace).

Output

Optional TThe output directory for storing the module (relative to the workspace).

Imports

Required Comma-separated list of import folders.

Debug

Optional Enable debug mode. The default is `false``.

Example usage

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

About

This action creates a PowerShell module from source files.

Topics

Resources

Code of conduct

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages