Skip to content

Commit e62a339

Browse files
committed
fix: update Register-PSResourceRepository command to use shorthand for PSGallery
1 parent b1b59a1 commit e62a339

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/publishpackage.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
env:
2727
nugetkey: ${{secrets.NUGETKEY}}
2828
run: |
29-
Register-PSResourceRepository -Name PSGallery -Uri "https://www.powershellgallery.com/api/v2" -Trusted
29+
Register-PSResourceRepository -PSGallery -Trusted
3030
$data = Import-PowerShellDataFile .\code365scripts.openai\code365scripts.openai.psd1
3131
if($data.RequiredModules) {
3232
$data.RequiredModules | Foreach-Object {Install-Module -Name $_.ModuleName -RequiredVersion $_.ModuleVersion }
@@ -35,4 +35,3 @@ jobs:
3535
Remove-Item -Path ".github" -Recurse -Force
3636
Remove-Item -Path ".vscode" -Recurse -Force
3737
Publish-PSResource -ApiKey $env:nugetkey -Path code365scripts.openai -Repository PSGallery
38-

0 commit comments

Comments
 (0)