Skip to content

Publish PowerShell Module #3

Publish PowerShell Module

Publish PowerShell Module #3

Workflow file for this run

name: Publish PowerShell Module
on:
release:
types: [created]
jobs:
publish-to-gallery:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and publish
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
shell: pwsh
run: |
./build.ps1
Publish-Module -Path /tmp/PSComputerManagementZp -NuGetApiKey $env:NUGET_KEY -Verbose