Skip to content

v0.6.18

v0.6.18 #39

Workflow file for this run

name: Publish PowerShell Module
on:
release:
types: [published]
jobs:
publish-to-gallery:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- 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: Install Diagrammer.Core module
shell: pwsh
run: |
Install-Module -Name Diagrammer.Core -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