Skip to content

This GitHub Action helps publish your PowerShell module to the PowerShell Gallery automatically.

Notifications You must be signed in to change notification settings

pcgeek86/publish-powershell-module-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Publish PowerShell Module

This GitHub Action enables you to publish a PowerShell module to the PowerShell Gallery.

Usage

  1. Add a GitHub Actions Workflow configuration to your GitHub project, under .github/workflows/main.yml
  2. Configure a secret on your GitHub repository, containing your PowerShell Gallery NuGet API key
  3. Add the following step to your GitHub Actions job

For example, if you named your secret PS_GALLERY_KEY:

      - name: Publish Module to PowerShell Gallery
        uses: pcgeek86/publish-powershell-module-action@v20
        id: publish-module
        with:
          NuGetApiKey: ${{ secrets.PS_GALLERY_KEY }}

Assumptions

  • You're writing a PowerShell script module (not a compiled module)
  • Your module is contained within a subfolder of your GitHub repository

About

This GitHub Action helps publish your PowerShell module to the PowerShell Gallery automatically.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •