Add a github action to build the docs into JSON format

pull/6668/head
Karl Hobley 2020-12-29 15:24:56 +00:00
rodzic d302bea68c
commit b161b66b79
1 zmienionych plików z 26 dodań i 0 usunięć
.github/workflows

26
.github/workflows/docs.yml vendored 100644
Wyświetl plik

@ -0,0 +1,26 @@
name: Wagtail Docs
on:
push:
pull_request:
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[docs]
- name: Make the docs
run: cd docs && make json
- name: Upload the docs
uses: actions/upload-artifact@v2
with:
name: jsondocs
path: docs/_build/json