-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branches 'main' and 'main' of https://github.com/Frank-Geisler/…
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Publish Module to PSGallery | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up PowerShell | ||
uses: actions/setup-powershell@v2 | ||
with: | ||
powershell-version: '7.4' | ||
|
||
- name: Install PowerShellGet | ||
run: | | ||
Install-Module -Name PowerShellGet -Force -Scope CurrentUser | ||
Import-Module -Name PowerShellGet | ||
- name: Publish Module | ||
run: | | ||
$PSGalleryApiKey = "${{ secrets.PSGALLERY_API_KEY }}" | ||
Publish-Module -Path ./ -NuGetApiKey $PSGalleryApiKey | ||
shell: pwsh |