psmodule/Publish-PSModule
Publish a pre-versioned PowerShell module artifact to the PowerShell Gallery and GitHub Releases.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| Name | Name of the module to publish. | no | — |
| ModulePath | Path to the folder containing the <Name>/ module subdirectory from Build-PSModule. A module artifact must exist before invoking this action. | no | outputs/module |
| APIKey | PowerShell Gallery API Key. | yes | — |
| AutoCleanup | Control whether to automatically delete the prerelease tags after the stable release is created. | no | true |
| WhatIf | If specified, the action will only log the changes it would make, but will not actually create or delete any releases or tags. | no | false |
| WorkingDirectory | The working directory where the script will run from. | no | . |
| UsePRTitleAsReleaseName | When enabled, uses the pull request title as the name for the GitHub release. If not set, the version string is used. | no | false |
| UsePRBodyAsReleaseNotes | When enabled, uses the pull request body as the release notes for the GitHub release. If not set, the release notes are auto-generated. | no | true |
| UsePRTitleAsNotesHeading | When enabled along with UsePRBodyAsReleaseNotes, the release notes will begin with the pull request title as a H1 heading followed by the pull request body. The title will reference the pull request number. | no | true |
| ArtifactName | Name of the uploaded artifact to download. Must match the name used in the upstream upload-artifact step. | no | module |
Outputs
no outputs