Skip to content

Commit

Permalink
Merge branches 'main' and 'main' of https://github.com/Frank-Geisler/…
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank-Geisler committed Nov 24, 2024
2 parents 7040ecf + 4c20511 commit 7141e7a
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 7141e7a

Please sign in to comment.