Skip to content

Commit 7d6a280

Browse files
committedApr 6, 2024
ci: Install module using PSResourceGet to see if it includes all of the files
1 parent b635d8c commit 7d6a280

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎.github/workflows/build-test-and-deploy-powershell-module.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ jobs:
4848
Test-ModuleManifest -Path $moduleManifestFilePath
4949
5050
Write-Output "Publishing the prerelease version of the module."
51-
Publish-Module -Path $moduleDirectoryPath -NuGetApiKey '${{ secrets.POWERSHELL_GALLERY_API_KEY }}' -Verbose
51+
Install-Module -Name PSResourceGet -Scope CurrentUser -Repository PSGallery -Force
52+
Publish-PSResource -Path $moduleDirectoryPath -ApiKey '${{ secrets.POWERSHELL_GALLERY_API_KEY }}' -Repository PSGallery -Verbose
5253
5354
- name: Wait a short while for the module to be available on the PowerShell Gallery before continuing
5455
shell: pwsh

0 commit comments

Comments
 (0)