File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 47
47
Write-Output "Testing the prerelease module manifest file '$moduleManifestFilePath' to ensure it is still valid."
48
48
Test-ModuleManifest -Path $moduleManifestFilePath
49
49
50
- # Publish-Module has a bug where it does not include dot-files in the module when publishing, so must use Publish-PSResource instead.
51
- Write-Output "Installing the PSResourceGet module to use to publish the module."
52
- Install-Module -Name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser -Repository PSGallery -Force
53
-
54
50
Write-Output "Publishing the prerelease version of the module."
55
- Publish-PSResource -Path $moduleDirectoryPath -ApiKey '${{ secrets.POWERSHELL_GALLERY_API_KEY }}' -Repository PSGallery -Verbose
51
+ Publish-Module -Path $moduleDirectoryPath -NuGetApiKey '${{ secrets.POWERSHELL_GALLERY_API_KEY }}' -Verbose
56
52
57
53
- name : Wait a short while for the module to be available on the PowerShell Gallery before continuing
58
54
shell : pwsh
@@ -159,13 +155,7 @@ jobs:
159
155
run : |
160
156
[string] $moduleName = '${{ needs.run-build-and-test.outputs.powerShellModuleName }}'
161
157
[string] $moduleDirectoryPath = "$Env:artifactsDirectoryPath/$moduleName"
162
-
163
- # Publish-Module has a bug where it does not include dot-files in the module when publishing, so must use Publish-PSResource instead.
164
- Write-Output "Installing the PSResourceGet module to use to publish the module."
165
- Install-Module -Name Microsoft.PowerShell.PSResourceGet -Scope CurrentUser -Repository PSGallery -Force
166
-
167
- Write-Output "Publishing the prerelease version of the module."
168
- Publish-PSResource -Path $moduleDirectoryPath -ApiKey '${{ secrets.POWERSHELL_GALLERY_API_KEY }}' -Repository PSGallery -Verbose
158
+ Publish-Module -Path $moduleDirectoryPath -NuGetApiKey '${{ secrets.POWERSHELL_GALLERY_API_KEY }}' -Verbose
169
159
170
160
- name : Wait a short while for the module to be available on the PowerShell Gallery before continuing
171
161
shell : pwsh
You can’t perform that action at this time.
0 commit comments