2019-04-18 10:43:26 +09:00
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
|
2020-05-21 13:26:11 +09:00
|
|
|
pr: none
|
|
|
|
|
2019-04-18 10:43:26 +09:00
|
|
|
pool:
|
2020-06-28 13:30:10 +09:00
|
|
|
vmImage: "windows-latest"
|
2020-03-09 17:49:36 +09:00
|
|
|
|
2019-04-18 10:43:26 +09:00
|
|
|
steps:
|
2020-06-28 13:30:10 +09:00
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: "Update archives"
|
|
|
|
inputs:
|
|
|
|
targetType: "filePath"
|
|
|
|
filePath: "./update_archives.azure.ps1"
|
|
|
|
failOnStderr: true
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)
|
|
|
|
- task: NodeTool@0
|
|
|
|
displayName: "Setup node 12.x"
|
|
|
|
inputs:
|
|
|
|
versionSpec: "12.x"
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: "Create Build"
|
|
|
|
inputs:
|
|
|
|
targetType: "filePath"
|
|
|
|
filePath: "./build.azure.ps1"
|
|
|
|
failOnStderr: true
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)
|
|
|
|
- task: PowerShell@2
|
|
|
|
displayName: "Push Changes"
|
|
|
|
condition: succeeded()
|
|
|
|
env:
|
|
|
|
GitHub_PAT: $(GitHub_PAT)
|
|
|
|
inputs:
|
|
|
|
targetType: "inline"
|
|
|
|
script: "git push -uqf $(GitHub_PAT) HEAD:gh-pages;"
|
|
|
|
failOnStderr: true
|
|
|
|
workingDirectory: $(Build.SourcesDirectory)/docs/.vuepress/dist
|