Skip to content

Commit 5ec5e14

Browse files
committed
feat(#177): update Publish.yml for module publishing process
- Add actions write permission - Include Import-BuiltCiModule script in the publishing workflow - Call Publish-NovaModule with PSGallery repository and API key
1 parent 1bcd104 commit 5ec5e14

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/Publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010

1111
permissions:
1212
contents: write
13+
actions: write
1314

1415
defaults:
1516
run:
@@ -102,6 +103,10 @@ jobs:
102103
103104
./scripts/build/ci/Import-BuiltCiModule.ps1 | Out-Null
104105
106+
Publish-NovaModule -Repository PSGallery -ApiKey $env:PSGALLERY_API
107+
108+
./scripts/build/ci/Import-BuiltCiModule.ps1 | Out-Null
109+
105110
Update-NovaModuleVersion -Preview -Verbose
106111
env:
107112
PSGALLERY_API: ${{ secrets.PSGALLERY_API }}

0 commit comments

Comments
 (0)