Skip to content

Publish PowerShell Module #20

Publish PowerShell Module

Publish PowerShell Module #20

Workflow file for this run

name: Publish PowerShell Module
on:
release:
types: [published]
jobs:
publish-to-gallery:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip' # caching pip dependencies
- name: Install dependencies
run: pip install -r ./Scripts/etc/requirements.txt
- name: Build and publish
shell: pwsh
run: |
./Scripts/build.ps1
Publish-Module -Path /tmp/PSComputerManagementZp -NuGetApiKey ${{ secrets.NUGET_KEY }} -Verbose