forked from dotnet/docfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
50 lines (43 loc) · 1.06 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
# 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: NuGetToolInstaller@1
displayName: 'Use NuGet'
inputs:
versionSpec: 5.9.1
- task: NodeTool@0
displayName: "Use Node 16.x"
inputs:
versionSpec: 16.x
- powershell: |
npm install -g npm-windows-upgrade
npm-windows-upgrade -v 8.13.2
npm -v
displayName: Upgrade npm to latest version
- task: PowerShell@2
displayName: 'dev build'
inputs:
pwsh: true
failOnStderr: true
filePath: 'tools\Deployment\deploy.ps1'
- 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