gctGenerator/azure-pipelines.yml

40 lines
939 B
YAML
Raw Normal View History

trigger:
branches:
include:
- master
2020-05-21 13:26:11 +09:00
pr: none
pool:
2020-06-28 13:30:10 +09:00
vmImage: "windows-latest"
2020-03-09 17:49:36 +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