vscode-docs/azure-pipelines.yml

70 строки
1.8 KiB
YAML
Исходник Обычный вид История

2021-07-13 01:29:19 +03:00
pr: none
resources:
repositories:
- repository: self
type: github
ref: main
trigger:
- main
- vnext
- repository: website
type: github
2021-07-13 01:40:17 +03:00
endpoint: Monaco
name: microsoft/vscode-website
2023-03-06 22:28:37 +03:00
ref: release/prod
2021-07-13 01:29:19 +03:00
- repository: dist
type: github
endpoint: Monaco
name: microsoft/vscode-website-dist
2021-09-04 01:09:44 +03:00
ref: $(Build.SourceBranchName)
2021-07-13 01:29:19 +03:00
jobs:
- job:
displayName: Build
variables:
skipComponentGovernanceDetection: true
cancelTimeoutInMinutes: 1
pool:
2021-12-02 01:57:59 +03:00
vmImage: macOS-latest
2021-07-13 01:29:19 +03:00
steps:
- checkout: website
clean: true
path: vscode-website
persistCredentials: true
2021-09-04 00:16:17 +03:00
fetchDepth: 1
2021-07-13 01:29:19 +03:00
- checkout: self
path: vscode-website/vscode-docs
lfs: true
2021-09-04 00:16:17 +03:00
fetchDepth: 1
2021-07-13 01:29:19 +03:00
persistCredentials: true
- checkout: dist
path: vscode-website/dist
persistCredentials: true
- task: NodeTool@0
displayName: Use Node 20.x
2021-07-13 01:29:19 +03:00
inputs:
versionSpec: 20.x
2021-07-13 01:29:19 +03:00
checkLatest: true
- 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)