pwujczyk / ProductivityTools.PSPublishModuleToPowershellGallery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Publish module to PowerShell Gallery

Module finds psd1 file in current directory (recursive) and pushes it to www.powershellgallery.com portal.

  • First it takes your API key to PowerShell Gallery from the MasterConfiguration.

  • Next it takes PowerShell Gallery name which is usually PSGallery, but can be different if you have your own configuration. You can check it using Get-PSRepository cmdlet.

  • In the last step it invokes Publish-ModuleTo cmdlet which pushes modules.

Diagram

Module is dependent on Publish-ModuleTo. It uses MasterConfiguration. To use it add PSRepositoryApiKey key to MasterConfiguration.

Diagram

To use module invoke command in the directory of module.

Publish-ModuleToPowershellGallery

Execution

About


Languages

Language:PowerShell 100.0%