From 749da2eb8b868071c5a6457adeed1d9e17702735 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Thu, 4 May 2023 13:24:09 -0700 Subject: [PATCH] update --- ...anch.Nuget-WindowsAI-Pipeline.Official.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.pipelines/OneBranch.Nuget-WindowsAI-Pipeline.Official.yml b/.pipelines/OneBranch.Nuget-WindowsAI-Pipeline.Official.yml index fa2b475fe9c1c..b9de1b79e1d51 100644 --- a/.pipelines/OneBranch.Nuget-WindowsAI-Pipeline.Official.yml +++ b/.pipelines/OneBranch.Nuget-WindowsAI-Pipeline.Official.yml @@ -351,6 +351,31 @@ extends: - script: | dir $(Build.SourcesDirectory)\unzipped\runtimes\win-x64\_native + - task: EsrpCodeSigning@2 + displayName: "Sign Nuget package" + inputs: + ConnectedServiceName: 'OnnxRuntime CodeSign 20190817' + FolderPath: $(Build.ArtifactStagingDirectory) + Pattern: '*.nupkg' + signConfigType: inlineSignParams + inlineOperation: | + [ + { + "keyCode": "CP-401405", + "operationSetCode": "NuGetSign", + "parameters": [ ], + "toolName": "sign", + "toolVersion": "1.0" + }, + { + "keyCode": "CP-401405", + "operationSetCode": "NuGetVerify", + "parameters": [ ], + "toolName": "sign", + "toolVersion": "1.0" + } + ] + - job: NuGet_Publishing pool: type: windows