Skip to content

Commit 1e47b3a

Browse files
committed
ci: add CI documentation job
1 parent 6e77bef commit 1e47b3a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

azure-pipelines.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,19 @@ jobs:
4444
dependsOn:
4545
- CommitLint
4646
condition: succeeded('CommitLint')
47+
48+
- job: Documentation
49+
pool :
50+
vmImage: 'ubuntu-latest'
51+
steps:
52+
- template: .ci/templates/steps/initialize-environment.yml
53+
- template: .ci/templates/steps/install-dependencies.yml
54+
- script: |
55+
npm run docs
56+
displayName: 'Generating Docs'
57+
- script: |
58+
git config user.email [email protected]
59+
git config user.name "Azure Pipelines"
60+
node .build/publish-gh-pages
61+
displayName: 'Publishing Docs'
62+
condition: eq(variables['Build.SourceBranchName'], 'master')

0 commit comments

Comments
 (0)