-
Notifications
You must be signed in to change notification settings - Fork 152
/
sign-release-package.yaml
68 lines (62 loc) · 3.17 KB
/
sign-release-package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
parameters:
vmImage: null
filePattern: null
inlineSignParams: null
unsignedPipelineResource: null
unsignedArtifactName: null
signedArtifactName: null
platform: null
jobs:
- job: ${{ parameters.signedArtifactName }}
pool:
vmImage: ${{ parameters.vmImage }}
steps:
- template: ../../install-node-prerequisites.yaml
- task: DownloadPipelineArtifact@2
inputs:
source: 'specific'
runVersion: 'specific'
project: $(resources.pipeline.${{ parameters.unsignedPipelineResource }}.projectID)
pipeline: $(resources.pipeline.${{ parameters.unsignedPipelineResource }}.pipelineID)
runId: $(resources.pipeline.${{ parameters.unsignedPipelineResource }}.runID)
artifact: ${{ parameters.unsignedArtifactName }}
path: '$(System.DefaultWorkingDirectory)/signing-in-progress/${{ parameters.signedArtifactName }}'
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'Send to ESRP Code Signing service'
inputs:
ConnectedServiceName: 'ESRP Code Signing'
FolderPath: '$(System.DefaultWorkingDirectory)/signing-in-progress/${{ parameters.signedArtifactName }}'
Pattern: ${{ parameters.filePattern }}
signConfigType: inlineSignParams
inlineOperation: ${{ parameters.inlineSignParams }}
- script: node ./pipeline/scripts/update-latest-yml.js signing-in-progress/${{ parameters.signedArtifactName }} ${{ parameters.platform }}
displayName: update electron-builder latest.yml after signing
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'Send to ESRP Code Signing service for notarization'
condition: eq('${{ parameters.platform }}', 'mac')
inputs:
ConnectedServiceName: 'ESRP Code Signing'
FolderPath: '$(System.DefaultWorkingDirectory)/signing-in-progress/${{ parameters.signedArtifactName }}'
Pattern: ${{ parameters.filePattern }}
signConfigType: inlineSignParams
inlineOperation: |
[
{
"keyCode": "CP-401337-Apple",
"operationSetCode": "MacAppNotarize",
"parameters": [
{
"parameterName": "BundleId",
"parameterValue": 'com.microsoft.accessibilityinsights.unified.${{ parameters.channel }}'
}
],
"toolName": "sign",
"toolVersion": "1.0"
}
]
- template: ../publish-packed-build-output.yaml
parameters:
packedOutputPath: '$(System.DefaultWorkingDirectory)/signing-in-progress/${{ parameters.signedArtifactName }}'
artifactName: ${{ parameters.signedArtifactName }}