Manual Publish PowerAzPlus Module #2
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
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 | |
# 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 |