Skip to content

Commit 14b3a75

Browse files
committed
Update workflow
1 parent b054390 commit 14b3a75

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# $<Schema>$ https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
2+
name: "Publish - PowerShell Gallery - Module"
3+
on:
4+
release:
5+
types:
6+
- "published"
7+
workflow_dispatch:
8+
jobs:
9+
publish-psg-module:
10+
name: "Publish - PowerShell Gallery - Module"
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- name: "Checkout Repository"
14+
uses: "actions/[email protected]"
15+
- run: |
16+
Install-Module -Name PowerShellGet -Force
17+
Update-Module -Name PowerShellGet
18+
Publish-Module -Path .\hugoalh.GitHubActionsToolkit\ -NugetAPIKey '${{secrets.POWERSHELLGALLERY_TOKEN}}' -Verbose
19+
shell: "pwsh"

0 commit comments

Comments
 (0)