parameters:
  FolderPath: ''
  DisplayName: ''
  DoEsrp: 'false'

steps:
- ${{ if eq(parameters['DoEsrp'], 'true') }}:
  - task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@2
    displayName: ${{ parameters.DisplayName }}
    inputs:
      ConnectedServiceName: 'OnnxRuntime CodeSign 20190817'
      FolderPath: ${{ parameters.FolderPath }}
      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"
           }
       ]