Skip to content

Commit

Permalink
Add 'ob_restore_phase' for every task before the signing task to work…
Browse files Browse the repository at this point in the history
… around the signing issue (#4046)
  • Loading branch information
daxian-dbw authored Jun 20, 2024
1 parent 6327a1a commit eff1452
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pipelines/PSReadLine-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,13 @@ extends:
type: windows
steps:
- checkout: self
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue

- task: DownloadPipelineArtifact@2
displayName: 'Download build files'
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
inputs:
targetPath: $(signOutPath)
artifact: drop_buildstage_buildjob
Expand All @@ -212,6 +216,8 @@ extends:
Get-ChildItem $(signOutPath) -Recurse
New-Item -Path $(nugetPath) -ItemType Directory > $null
displayName: Capture artifacts structure
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
- pwsh: |
try {
Expand All @@ -223,6 +229,8 @@ extends:
}
Get-ChildItem -Path $(nugetPath)
displayName: 'Create the NuGet package'
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
- task: onebranch.pipeline.signing@1
displayName: Sign nupkg
Expand Down

0 comments on commit eff1452

Please sign in to comment.