Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcgeek86/publish-powershell-module-action
This GitHub Action helps publish your PowerShell module to the PowerShell Gallery automatically.
https://github.com/pcgeek86/publish-powershell-module-action
cicd devops powershell
Last synced: about 2 months ago
JSON representation
This GitHub Action helps publish your PowerShell module to the PowerShell Gallery automatically.
- Host: GitHub
- URL: https://github.com/pcgeek86/publish-powershell-module-action
- Owner: pcgeek86
- Created: 2020-09-28T23:11:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-19T20:16:23.000Z (over 3 years ago)
- Last Synced: 2024-11-16T09:34:16.543Z (about 2 months ago)
- Topics: cicd, devops, powershell
- Language: PowerShell
- Homepage:
- Size: 22.5 KB
- Stars: 22
- Watchers: 5
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - pcgeek86/publish-powershell-module-action - This GitHub Action helps publish your PowerShell module to the PowerShell Gallery automatically. (PowerShell)
README
## Publish PowerShell Module
This GitHub Action enables you to publish a PowerShell module to the [PowerShell Gallery](https://powershellgallery.com).
## 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 jobFor 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