forked from dotnet/docfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
54 lines (47 loc) · 1.03 KB
/
azure-pipelines.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
trigger:
batch: true
branches:
include:
- dev
- master
pr:
- dev
- master
pool:
name: Hosted Windows 2019 with VS2019
vmImage: 'windows-2019'
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 dev'
workingFolder: tools/Deployment
- task: PublishBuildArtifacts@1
condition: always()
inputs:
pathtoPublish: 'target\Release\docfx'
artifactName: target
- task: PublishBuildArtifacts@1
condition: always()
inputs:
pathtoPublish: 'test\docfx-seed\_site'
artifactName: docfx-seed-site