Skip to content

Commit 62552cd

Browse files
committed
install PlatyPS during github action
1 parent 6270612 commit 62552cd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/Publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish Module
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
workflow_dispatch:
99

@@ -18,8 +18,10 @@ jobs:
1818
- name: 📥 Checkout
1919
uses: actions/checkout@v4
2020

21-
- name: 📦 Install ModuleTools module form PSGallery
22-
run: Install-PSResource -Repository PSGallery -Name ModuleTools -TrustRepository
21+
- name: 📦 Install required modules from PSGallery
22+
run: |
23+
Install-PSResource -Repository PSGallery -Name ModuleTools -TrustRepository
24+
Install-PSResource -Repository PSGallery -Name Microsoft.PowerShell.PlatyPS -TrustRepository
2325
2426
- name: 🏗️ Build Module
2527
run: Invoke-MTBuild -Verbose
@@ -45,4 +47,4 @@ jobs:
4547
exit 1 # Fail the workflow on error
4648
}
4749
env:
48-
ApiKey: ${{ secrets.PSGALLERY_API }}
50+
ApiKey: ${{ secrets.PSGALLERY_API }}

0 commit comments

Comments
 (0)