Skip to content

Commit 7f1c31a

Browse files
authored
Merge pull request #28 from jdarcyryan/jdr/psgallery_pipeline
jdr/psgallery_pipeline
2 parents 0847f3b + 89fcb3b commit 7f1c31a

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ permissions:
1616
jobs:
1717
release-module:
1818
runs-on: windows-latest
19+
if: github.event.before != '0000000000000000000000000000000000000000'
1920

2021
env:
2122
GITHUB_OWNER: ${{ github.repository_owner }}

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ It will produce release notes, changelog and a nupkg in GitHub packages.
119119

120120
__Note__: _this will fail if the version is not bumped, or if the current version already exists as a release or package._
121121

122+
### Publish to PSGallery
123+
124+
A manually triggered workflow is available to publish your module to the [PowerShell Gallery](https://www.powershellgallery.com/).
125+
This workflow downloads the `.nupkg` from the latest GitHub release and pushes it to PSGallery.
126+
127+
To use this workflow:
128+
129+
1. Ensure a GitHub release exists with a `.nupkg` asset (created automatically by the merge to master pipeline).
130+
2. Add a `PSGALLERY_API_KEY` secret to your repository or organisation. You can generate an API key from your [PSGallery account](https://www.powershellgallery.com/account).
131+
3. Navigate to the **Actions** tab, select the **Publish to PSGallery** workflow, and click **Run workflow**.
132+
122133
### After merge
123134

124135
After merging to master, markdown files for each public function in the module will be created.

0 commit comments

Comments
 (0)