Build docs in CI (#983)

This commit is contained in:
Dexter Chua 2020-12-31 20:18:13 +08:00 committed by GitHub
parent 8cc3c33550
commit e205121806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 23 additions and 0 deletions

View File

@ -19,6 +19,26 @@ jobs:
name: lint name: lint
command: make lint command: make lint
build-docs:
working_directory: ~/repo
docker:
- image: python:3.8-alpine
steps:
- checkout
- run:
name: Install prerequisites
command: pip install -r docs/requirements-doc.txt
- run:
name: Build docs
command: python3 -m sphinx -M html docs docs/_build
- store_artifacts:
path: /root/repo/docs/_build/
build-core: build-core:
<<: *defaults <<: *defaults
steps: steps:
@ -234,6 +254,7 @@ workflows:
build-and-deploy: build-and-deploy:
jobs: jobs:
- lint - lint
- build-docs
- build-core: - build-core:
filters: filters:
tags: tags:
@ -290,6 +311,7 @@ workflows:
- test-core-chrome - test-core-chrome
- test-packages-chrome - test-packages-chrome
- test-emsdk - test-emsdk
- build-docs
filters: filters:
branches: branches:
ignore: /.*/ ignore: /.*/
@ -304,6 +326,7 @@ workflows:
- test-core-chrome - test-core-chrome
- test-packages-chrome - test-packages-chrome
- test-emsdk - test-emsdk
- build-docs
filters: filters:
branches: branches:
only: master only: master