forked from dotnet/docfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-master.yml
65 lines (58 loc) · 1.59 KB
/
azure-pipelines-master.yml
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
pool:
name: Hosted Windows 2019 with VS2019
steps:
- task: NodeTool@0
displayName: 'Use Node 8.x'
inputs:
versionSpec: 8.x
- task: NuGetToolInstaller@0
displayName: 'Use NuGet 4.3.0'
- task: CmdLine@1
displayName: 'npm install'
inputs:
filename: npm
arguments: install
workingFolder: tools/Deployment
- task: CmdLine@1
displayName: 'tsc compile'
inputs:
filename: node
arguments: '.\node_modules\typescript\bin\tsc'
workingFolder: tools/Deployment
- task: CmdLine@1
displayName: 'gulp build'
inputs:
filename: node
arguments: '.\node_modules\gulp\bin\gulp.js master:build'
workingFolder: tools/Deployment
- task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@1
displayName: 'ESRP CodeSigning'
inputs:
ConnectedServiceName: nuget
FolderPath: 'artifacts\Release'
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"
}
]
SessionTimeout: 20
- task: CmdLine@1
displayName: 'gulp release'
inputs:
filename: node
arguments: '.\node_modules\gulp\bin\gulp.js master:release'
workingFolder: tools/Deployment