Skip to content

A GitHub Action to publish a PowerShell module or script to GitHub Packages, a NuGet repository, or the PowerShell Gallery.

License

Notifications You must be signed in to change notification settings

vertigo-one/publish-powershell-action

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish PowerShell GitHub Action

A GitHub Action to publish a PowerShell module or script to GitHub Packages, a NuGet repository, or the PowerShell Gallery.

Forked from https://github.com/natescherer/publish-powershell-action for my own usage and learning.

NOT ACTIVELY TESTED or developed: Recomend using https://github.com/natescherer/publish-powershell-action instead if you want a tested or easy to use version.

Usage

    steps:
      - name: Publish PowerShell Module
        uses: vertigo-one/publish-powershell-action@main
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          target: packages
          path: src
    steps:
      - name: Publish PowerShell Module
        uses: vertigo-one/publish-powershell-action@main
        with:
          token: ${{ secrets.NUGET_TOKEN }}
          target: nuget
          path: src
    steps:
      - name: Publish PowerShell Module
        uses: vertigo-one/publish-powershell-action@main
        with:
          token: ${{ secrets.GALLERY_API_KEY }}
          target: gallery
          path: src

Inputs

Name Required Default Description
token true Token to authenticate.
target true Set to packages for GitHub Packages, gallery for the PowerShell Gallery, or nuget for a NuGet repository.
path true Path to publish relative to the root of the project. Can either be a .psd1 file, a .ps1 file, or a directory. If a directory, the action will search for a .psd1 file in the root. If none are found, it will then
search for a .ps1 file in the root.
nugetUrl false Url to use with NuGet target. Should be a NuGet v2 or v3 endpoint.

License

This project is licensed under The MIT License - see LICENSE for details.

About

A GitHub Action to publish a PowerShell module or script to GitHub Packages, a NuGet repository, or the PowerShell Gallery.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%