forked from microsoft/vscode-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
78 lines (77 loc) · 1.95 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
pr: none
resources:
repositories:
- repository: self
type: github
ref: main
trigger:
- main
- vnext
- repository: website
type: github
endpoint: Monaco
name: microsoft/vscode-website
ref: prod
- repository: dist
type: github
endpoint: Monaco
name: microsoft/vscode-website-dist
ref: main
jobs:
- job:
displayName: Build
variables:
skipComponentGovernanceDetection: true
cancelTimeoutInMinutes: 1
pool:
name: Hosted macOS
steps:
- checkout: website
clean: true
path: vscode-website
persistCredentials: true
- checkout: self
path: vscode-website/vscode-docs
lfs: true
persistCredentials: true
- checkout: dist
path: vscode-website/dist
persistCredentials: true
- task: NodeTool@0
displayName: Use Node 12.18.0
inputs:
versionSpec: 12.18.0
checkLatest: true
- task: Npm@0
displayName: npm install yarn
inputs:
arguments: -g yarn
- task: CmdLine@1
displayName: yarn install
inputs:
filename: yarn
arguments: install
workingFolder: ../vscode-website
- task: Bash@3
displayName: Build Dist Setup
inputs:
filePath: ../vscode-website/scripts/ci-build-dist-setup.sh
workingDirectory: ../vscode-website
env:
WEBSITE_BRANCH: $(Build.SourceBranchName)
- task: Bash@3
displayName: Rebuild Dist From Website
condition: eq(variables['Build.Repository.Name'], 'microsoft/vscode-website')
inputs:
filePath: ../vscode-website/scripts/ci-build-dist-from-website.sh
workingDirectory: ../vscode-website
env:
WEBSITE_BRANCH: $(Build.SourceBranchName)
- task: Bash@3
displayName: Rebuild Dist From Docs
condition: eq(variables['Build.Repository.Name'], 'microsoft/vscode-docs')
inputs:
filePath: ../vscode-website/scripts/ci-build-dist-from-docs.sh
workingDirectory: ../vscode-website
env:
DOCS_BRANCH: $(Build.SourceBranchName)