Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17b324c commit 49d7be4Copy full SHA for 49d7be4
1 file changed
publish.ps1
@@ -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
14
$ModulePath = "$PSScriptRoot\MaintainModule"
15
Publish-Module -Path $ModulePath -NuGetApiKey $Env:PSGALLERY
0 commit comments