We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c85991 commit 0ae30e6Copy full SHA for 0ae30e6
2 files changed
PSGitChangeLog/PSGitChangeLog.psd1
2 Bytes
Publish-ToPSGallery.ps1
@@ -1,3 +1,6 @@
1
+Param (
2
+ $nuGetApiKey = $env:PSGallery_PAT
3
+)
4
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
5
6
$releaseNotes = $env:RELEASE_NOTES
@@ -18,8 +21,6 @@ Write-Host "Module Path: $modulePath"
18
21
19
22
$module = $modulePath | Split-Path -leaf
20
23
-$nuGetApiKey = $env:PSGallery_PAT
-
24
try {
25
Publish-Module -Path $modulePath -NuGetApiKey $nuGetApiKey -ErrorAction Stop -Force
26
Write-Host "Module: $module Version: $moduleVersion has been Published to the PowerShell Gallery!"
0 commit comments