Skip to content

Commit 1f1e795

Browse files
committed
Update publish-powershell-module-psg.yml
1 parent b17f3a2 commit 1f1e795

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/workflows/publish-powershell-module-psg.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,9 @@ defaults:
99
shell: "pwsh"
1010
jobs:
1111
publish-powershell-module-psg:
12-
name: "Publish PowerShell Module - PowerShell Gallery"
13-
runs-on: "windows-latest"
14-
steps:
15-
- name: "Checkout Repository"
16-
uses: "actions/[email protected]"
17-
- name: "Setup PowerShell Environment"
18-
uses: "hugoalh-studio/[email protected]"
19-
with:
20-
toolkit_setup: "false"
21-
- name: "Test Publish"
22-
run: |
23-
Publish-Module -Path '.\hugoalh.GitHubActionsToolkit\' -NugetAPIKey 'GUID' -WhatIf -Verbose
24-
- name: "Publish"
25-
run: |
26-
Publish-Module -Path '.\hugoalh.GitHubActionsToolkit\' -NugetAPIKey '${{secrets.POWERSHELLGALLERY_TOKEN}}' -Verbose
12+
name: "Publish PowerShell Module - PowerShell Gallery (Reusable Workflow)"
13+
uses: "hugoalh/hugoalh/.github/workflows/publish-powershell-module-psg.yml@main"
14+
with:
15+
path: ".\\hugoalh.GitHubActionsToolkit\\"
16+
secrets:
17+
POWERSHELLGALLERY_TOKEN: "${{secrets.POWERSHELLGALLERY_TOKEN}}"

0 commit comments

Comments
 (0)