You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge github-app-planning into documentation branch
Resolve the markdown-lint configuration against main and document Shelly's caller secret mapping.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Publishes a pre-versioned PowerShell module artifact to the PowerShell Gallery. GitHub Release creation is intentionally handled by the separate [Release-PSModule](../Release-PSModule/README.md) action.
4
+
5
+
## Inputs
6
+
7
+
| Name | Description | Required | Default |
8
+
| --- | --- | --- | --- |
9
+
|`Name`| Name of the module to publish. | No | Repository name |
10
+
|`ModulePath`| Path containing the built `<Name>/` module directory. | No |`outputs/module`|
11
+
|`ArtifactName`| Name of the module artifact to download. | No |`module`|
12
+
|`APIKey`| PowerShell Gallery API key. | Yes | N/A |
13
+
|`WhatIf`| Logs publishing operations without publishing the module. | No |`false`|
14
+
|`WorkingDirectory`| Directory where the publishing script runs. | No |`.`|
15
+
16
+
## Outputs
17
+
18
+
This action does not provide outputs.
19
+
20
+
## Usage
21
+
22
+
```yaml
23
+
- name: Publish module
24
+
uses: ./.github/actions/Publish-PSModule
25
+
with:
26
+
Name: ExampleModule
27
+
ModulePath: outputs/module
28
+
ArtifactName: module
29
+
APIKey: ${{ secrets.APIKEY }}
30
+
```
31
+
32
+
Use [Release-PSModule](../Release-PSModule/README.md) in a separate workflow step to create the GitHub release from the same artifact.
Copy file name to clipboardExpand all lines: .github/actions/Publish-PSModule/action.yml
+2-17Lines changed: 2 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
name: Publish-PSModule
2
-
description: Publish a pre-versioned PowerShell module artifact to the PowerShell Gallery and GitHub Releases.
2
+
description: Publish a pre-versioned PowerShell module artifact to the PowerShell Gallery.
3
3
author: PSModule
4
4
5
5
inputs:
@@ -14,25 +14,13 @@ inputs:
14
14
description: PowerShell Gallery API Key.
15
15
required: true
16
16
WhatIf:
17
-
description: If specified, the action will only log the changes it would make, but will not actually create or delete any releases or tags.
17
+
description: If specified, the action will only log the changes it would make, but will not publish the module.
18
18
required: false
19
19
default: 'false'
20
20
WorkingDirectory:
21
21
description: The working directory where the script will run from.
22
22
required: false
23
23
default: '.'
24
-
UsePRTitleAsReleaseName:
25
-
description: When enabled, uses the pull request title as the name for the GitHub release. If not set, the version string is used.
26
-
required: false
27
-
default: 'false'
28
-
UsePRBodyAsReleaseNotes:
29
-
description: When enabled, uses the pull request body as the release notes for the GitHub release. If not set, the release notes are auto-generated.
30
-
required: false
31
-
default: 'true'
32
-
UsePRTitleAsNotesHeading:
33
-
description: 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.
34
-
required: false
35
-
default: 'true'
36
24
ArtifactName:
37
25
description: Name of the uploaded artifact to download. Must match the name used in the upstream upload-artifact step.
0 commit comments