Skip to content

Update Get-PublicIP

Update Get-PublicIP #5

name: Publish [PublicIP]
on:
push:
paths:
- scripts/**
- src/PublicIP/**
- .github/workflows/Publish.PublicIP.yml
workflow_dispatch:
defaults:
run:
shell: pwsh
env:
ModuleName: 'PublicIP'
APIKey: ${{ secrets.apikey }}
jobs:
test:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Pester
run: |
Get-Module -ListAvailable
- name: Run linting
run: |
Invoke-ScriptAnalyzer -Path .\src\PublicIP -Recurse -Verbose
prepare:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout repo
uses: actions/checkout@v3
publish:
runs-on: 'ubuntu-latest'
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Publish module
if: github.ref == 'refs/heads/main'
run: |
.\scripts\Publish-Module.ps1 -ModuleName $env:ModuleName -APIKey $env:APIKey -Verbose