Skip to content

Commit b1a68a8

Browse files
committed
fix: remove redundant Register-PSResourceRepository step and update publish path
1 parent 599d157 commit b1a68a8

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
@@ -27,12 +27,11 @@ jobs:
2727
nugetkey: ${{secrets.NUGETKEY}}
2828
run: |
2929
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
30-
Register-PSResourceRepository -PSGallery
3130
$data = Import-PowerShellDataFile .\code365scripts.openai\code365scripts.openai.psd1
3231
if($data.RequiredModules) {
3332
$data.RequiredModules | Foreach-Object {Install-Module -Name $_.ModuleName -RequiredVersion $_.ModuleVersion }
3433
}
3534
Remove-Item -Path ".git" -Recurse -Force
3635
Remove-Item -Path ".github" -Recurse -Force
3736
Remove-Item -Path ".vscode" -Recurse -Force
38-
Publish-PSResource -ApiKey $env:nugetkey -Path .\code365scripts.openai\code365scripts.openai.psd1 -Repository PSGallery
37+
Publish-PSResource -ApiKey $env:nugetkey -Path code365scripts.openai -Repository PSGallery

0 commit comments

Comments
 (0)