Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
webtonize committed Mar 26, 2023
1 parent c2537bb commit b6f357d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# File: .github/workflows/publish-on-release.yml

on:
release:
types:
- "published"
workflow_dispatch:

name: Publish Module to PSGallery

jobs:
publish:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Az.Resources module
shell: pwsh
run: |
Set-PSRepository PSGallery -InstallationPolicy Trusted
Install-Module Az.Resources
- name: Publish module
shell: pwsh
id: publish-module
run: |
Publish-Module -Path ./src/PSCO2Signal -NuGetApiKey ${{ secrets.PS_GALLERY_KEY }}
Write-Output "## PSCO2Signal published to PSGallery" >> $env:GITHUB_STEP_SUMMARY

0 comments on commit b6f357d

Please sign in to comment.