Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 49d7be4

Browse files
author
Robin Stolpe
committed
update
1 parent 17b324c commit 49d7be4

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

publish.ps1

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,2 @@
1-
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
2-
3-
$CheckIfTrusted = Get-PSRepository -name PSGallery | Select-Object InstallationPolicy -ExpandProperty InstallationPolicy
4-
if ($CheckIfTrusted -eq "Untrusted") {
5-
try {
6-
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
7-
}
8-
catch {
9-
Write-Error "$($PSItem.Exception)"
10-
continue
11-
}
12-
}
13-
141
$ModulePath = "$PSScriptRoot\MaintainModule"
152
Publish-Module -Path $ModulePath -NuGetApiKey $Env:PSGALLERY

0 commit comments

Comments
 (0)