forked from microsoft/vscode-docs
-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
79 lines (78 loc) · 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
pr: none
resources:
repositories:
- repository: self
type: github
ref: main
trigger:
- main
- vnext
- repository: website
type: github
endpoint: Monaco
name: microsoft/vscode-website
ref: release/prod
- repository: dist
type: github
endpoint: Monaco
name: microsoft/vscode-website-dist
ref: $(Build.SourceBranchName)
jobs:
- job:
displayName: Build
variables:
skipComponentGovernanceDetection: true
cancelTimeoutInMinutes: 1
pool:
vmImage: macOS-latest
steps:
- checkout: website
clean: true
path: vscode-website
persistCredentials: true
fetchDepth: 1
- checkout: self
path: vscode-website/vscode-docs
lfs: true
fetchDepth: 1
persistCredentials: true
- checkout: dist
path: vscode-website/dist
persistCredentials: true
- task: NodeTool@0
displayName: Use Node 14.19.3
inputs:
versionSpec: 14.19.3
checkLatest: true
- task: Npm@0
displayName: npm install yarn
inputs:
arguments: -g yarn
- task: CmdLine@2
displayName: yarn install
inputs:
script: 'yarn install'
workingDirectory: '../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)