Skip to content

Commit

Permalink
✨ Add Publish to PSGallery script
Browse files Browse the repository at this point in the history
  • Loading branch information
michielthai committed Nov 21, 2019
1 parent 7c85991 commit 0ae30e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Binary file modified PSGitChangeLog/PSGitChangeLog.psd1
Binary file not shown.
5 changes: 3 additions & 2 deletions Publish-ToPSGallery.ps1
@@ -1,3 +1,6 @@
Param (
$nuGetApiKey = $env:PSGallery_PAT
)
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted

$releaseNotes = $env:RELEASE_NOTES
Expand All @@ -18,8 +21,6 @@ Write-Host "Module Path: $modulePath"

$module = $modulePath | Split-Path -leaf

$nuGetApiKey = $env:PSGallery_PAT

try {
Publish-Module -Path $modulePath -NuGetApiKey $nuGetApiKey -ErrorAction Stop -Force
Write-Host "Module: $module Version: $moduleVersion has been Published to the PowerShell Gallery!"
Expand Down

0 comments on commit 0ae30e6

Please sign in to comment.