Skip to content

Commit

Permalink
add workflow for gallery publish
Browse files Browse the repository at this point in the history
  • Loading branch information
RuneORakeie committed Nov 16, 2024
1 parent 744365a commit 4c20511
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/gallery-publish.yml
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

0 comments on commit 4c20511

Please sign in to comment.