Skip to content

Commit c9cf51d

Browse files
Create publish-module.yml
1 parent 899f898 commit c9cf51d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish PowerShell Module
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
publish-to-gallery:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- name: Build and publish
13+
env:
14+
NUGET_KEY: ${{ secrets.NUGET_KEY }}
15+
shell: pwsh
16+
run: |
17+
./build.ps1 -Path /tmp/samplemodule
18+
Publish-Module -Path /tmp/samplemodule -NuGetApiKey $env:NUGET_KEY -Verbose

0 commit comments

Comments
 (0)