Giter Club home page Giter Club logo

publish-powershell-action's Introduction

Publish PowerShell GitHub Action

PowerShell on Windows PowerShell on Linux PowerShell on macOS

All Contributors

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

It is tested and runs on windows-latest, ubuntu-latest, and macos-latest.

Usage

    steps:
      - name: Publish PowerShell Module
        uses: natescherer/publish-powershell-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          target: packages
          path: src
    steps:
      - name: Publish PowerShell Module
        uses: natescherer/publish-powershell-action@v1
        with:
          token: ${{ secrets.NUGET_TOKEN }}
          target: nuget
          path: src
    steps:
      - name: Publish PowerShell Module
        uses: natescherer/publish-powershell-action@v1
        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.

Outputs

Name Description

Contributors

Nate Scherer
Nate Scherer

๐Ÿ’ป ๐Ÿ“– ๐Ÿš‡
Gal Villaret
Gal Villaret

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind are welcome!

License

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

Acknowledgements

Hosted By: Cloudsmith

Package repository hosting is graciously provided by Cloudsmith.

publish-powershell-action's People

Contributors

natescherer avatar allcontributors[bot] avatar dependabot[bot] avatar galvill avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.