-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
34 lines (34 loc) · 1.15 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
resources:
- repo: self
stages:
- stage: Docfx
jobs:
- job: Docfx
displayName: GithubPagesDocumentation
pool:
name: Default
steps:
- powershell: |
$ghPagesPath = "$(System.DefaultWorkingDirectory)\ghpages"
if (Test-Path -Path $ghPagesPath) {
Remove-Item –Path $ghPagesPath –Recurse -Force
}
displayName: 'Clean Directory'
- task: UseNode@1
inputs:
version: '12.10.0'
- task: chrismason.vsts-docfxtasks.docfx-extension-build-task.DocFxTask@0
displayName: 'Create DocFx Documentation'
inputs:
solution: '$(System.DefaultWorkingDirectory)'
nugetConfigPath: '$(System.DefaultWorkingDirectory)\NuGet.Config'
- task: AccidentalFish.githubpages-publish.AccidentalFish.GitHubPages-Publish.GitHubPagesPublish@1
displayName: 'Publishes to GitHub Pages'
inputs:
docPath: '$(docPath)'
githubusername: '$(user)'
githubemail: '$(email)'
githubaccesstoken: '$(MGAccessToken)'
repositoryname: '$(repoName)'
branchname: '$(branchName)'
commitmessage: '$(Commit)'