Skip to content

Commit

Permalink
Add a codesign step to Windows AI nuget pipeline (#15816)
Browse files Browse the repository at this point in the history
### Description
Add a codesign step to Windows AI nuget pipeline to sign the nuget package
  • Loading branch information
snnn authored May 5, 2023
1 parent d1b2b35 commit e139ae2
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .pipelines/OneBranch.Nuget-WindowsAI-Pipeline.Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e139ae2

Please sign in to comment.