v0.5.7 #17
Workflow file for this run
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: Publish PowerShell Module | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish-to-gallery: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set PSRepository to Trusted for PowerShell Gallery | |
shell: pwsh | |
run: | | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
- name: Install PSGraph module | |
shell: pwsh | |
run: | | |
Install-Module -Name PSGraph -Repository PSGallery -Force | |
- name: Test Module Manifest | |
shell: pwsh | |
run: | | |
Test-ModuleManifest .\Veeam.Diagrammer.psd1 | |
- name: Publish module to PowerShell Gallery | |
shell: pwsh | |
run: | | |
Publish-Module -Path ./ -NuGetApiKey ${{ secrets.PSGALLERY_API_KEY }} -Verbose |