Skip to content

Commit

Permalink
Create manual_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffBrownTech authored Dec 5, 2024
1 parent 3f2a608 commit 0637899
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/manual_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Manual Publish PowerAzPlus Module

on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'

steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3

# Install PowerShell
- name: Set up PowerShell
uses: actions/setup-pwsh@v2

# Publish the module
- name: Publish module to PowerShell Gallery
run: |
$env:PSGalleryApiKey = "${{ secrets.POWERSHELLGALLERY_API_KEY }}"
Publish-Module -Path ./PowerAzPlus -Repository PSGallery -NuGetApiKey $env:PSGalleryApiKey
shell: pwsh

0 comments on commit 0637899

Please sign in to comment.