@@ -234,34 +234,25 @@ extends:
234234 Import-Module -Name Microsoft.PowerShell.PSResourceGet -Force
235235
236236 Set-Location "$(signOutPath)\Microsoft.PowerShell.PSResourceGet"
237- $publishPath = Join- Path $(signOutPath) -ChildPath 'PublishedNupkg'
237+ $null = New-Item -ItemType Directory - Path " $(signOutPath)\PublishedNupkg" -Force
238238
239- $null = New-Item -ItemType Directory -Path $publishPath -Force
240-
241- Register-PSResourceRepository -Name 'localRepo' -Uri $publishPath
239+ Register-PSResourceRepository -Name 'localRepo' -Uri "$(signOutPath)\PublishedNupkg"
242240 Publish-PSResource -Path "$(signOutPath)\Microsoft.PowerShell.PSResourceGet" -Repository 'localRepo' -Verbose
243- Write-Output "##vso[task.setvariable variable=publishPath;isOutput=true]$publishPath"
244241 displayName: Create nupkg for publishing
245242
246- - pwsh : |
247- Set-Location '$(publishPath)'
248- Write-Host "Contents of signOutPath:"
249- Get-ChildItem '$(publishPath)' -Recurse
250- displayName: Find Nupkg Pre Signing
251-
252243 - task : onebranch.pipeline.signing@1
253244 displayName : Sign nupkg
254245 inputs :
255246 command : ' sign'
256247 signing_profile : external_distribution
257248 files_to_sign : ' **\*.nupkg'
258- search_root : ' $(publishPath) '
249+ search_root : " $(signOutPath) \P ublishedNupkg "
259250
260251 - pwsh : |
261- Set-Location '$(publishPath)'
252+ Set-Location "$(signOutPath)\PublishedNupkg"
262253 Write-Host "Contents of signOutPath:"
263- Get-ChildItem '$(publishPath)' -Recurse
264- displayName: Find Nupkg Post Signing
254+ Get-ChildItem "$(signOutPath)" -Recurse
255+ displayName: Find Nupkg
265256
266257 - task : CopyFiles@2
267258 displayName : " Copy nupkg to ob_outputDirectory - '$(ob_outputDirectory)'"
0 commit comments