forked from dotnet/docfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
56 lines (48 loc) · 1.2 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
55
56
# This YAML is used for the docfx v2 gated checkin CI(https://docfx.visualstudio.com/docfx/_build?definitionId=2&_a=summary), that is a public CI, available for the public contributor
trigger:
batch: true
branches:
include:
- dev
- main
pr:
- dev
- main
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@1
displayName: 'Use NuGet'
- 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