Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.18 KB

File metadata and controls

32 lines (24 loc) · 1.18 KB

Publish-PSModule

Publishes a pre-versioned PowerShell module artifact to the PowerShell Gallery. GitHub Release creation is intentionally handled by the separate Release-PSModule action.

Inputs

Name Description Required Default
Name Name of the module to publish. No Repository name
ModulePath Path containing the built <Name>/ module directory. No .PSModule/module
ArtifactName Name of the module artifact to download. No module
PSGALLERY_API_KEY PowerShell Gallery API key. Yes N/A
WhatIf Logs publishing operations without publishing the module. No false
WorkingDirectory Directory where the publishing script runs. No .

Outputs

This action does not provide outputs.

Usage

- name: Publish module
  uses: ./.github/actions/Publish-PSModule
  with:
    Name: ExampleModule
    ModulePath: .PSModule/module
    ArtifactName: module
    PSGALLERY_API_KEY: ${{ secrets.PSGALLERY_API_KEY }}

Use Release-PSModule in a separate workflow step to create the GitHub release from the same artifact.