.github/workflows/Deploy.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

Write-Host (Get-Location).Path

$nuGetApiKey = $env:PSGALLERY_TOKEN

try{
    Publish-Module -Path . -NuGetApiKey $nuGetApiKey -ErrorAction Stop -Force #-Debug
    Write-Host "Set-GitHubSecrets has been Published to the PowerShell Gallery!"
}
catch {
    throw $_
}