Version and Publish Your PowerShell Modules to PowerShellGallery In One Step!If you write a PowerShell Module chances are you'll want to publish it to PowerShell Gallery. PowerShell Gallery Publisher not only enables you to do this in a pipeline, it also versions the PowerShell Module before uploading. Handy! Steps To Create a PowerShell Gallery Account and Get an API KeyIf you haven't already, go to PowerSHell Gallery and create an account.
Using the Task In Your Pipeline
The code is available on GitHub What Hosted Agents Do These Work OnThe task works on
The task does not work on
I have no plans to work on Hosted Agent as they are quite old. The build and release pipeline are publicly available to view here Sample of what the task look like - |