2021-02-25 19:35:46 +08:00
|
|
|
name: Docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'docs/**'
|
2022-03-07 17:56:31 +08:00
|
|
|
- '.github/workflows/docs.yml'
|
2021-02-25 19:35:46 +08:00
|
|
|
push:
|
|
|
|
branches:
|
2021-03-09 14:27:51 +08:00
|
|
|
- main
|
2021-02-25 19:35:46 +08:00
|
|
|
paths:
|
|
|
|
- 'docs/**'
|
2022-03-07 17:56:31 +08:00
|
|
|
- '.github/workflows/docs.yml'
|
2021-02-25 19:35:46 +08:00
|
|
|
|
2022-03-07 20:17:58 +08:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-02-25 19:35:46 +08:00
|
|
|
jobs:
|
|
|
|
docs:
|
2021-07-29 17:54:14 +08:00
|
|
|
# OS must be the same as on djangoproject.com.
|
|
|
|
runs-on: ubuntu-18.04
|
2021-02-25 19:35:46 +08:00
|
|
|
name: docs
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-03-07 17:56:31 +08:00
|
|
|
uses: actions/checkout@v3
|
2021-02-25 19:35:46 +08:00
|
|
|
- name: Set up Python
|
2022-03-07 17:56:31 +08:00
|
|
|
uses: actions/setup-python@v3
|
2021-02-25 19:35:46 +08:00
|
|
|
with:
|
2021-10-06 03:09:54 +08:00
|
|
|
python-version: '3.10'
|
2022-03-07 17:56:31 +08:00
|
|
|
cache: 'pip'
|
|
|
|
cache-dependency-path: 'docs/requirements.txt'
|
2021-02-25 19:35:46 +08:00
|
|
|
- run: python -m pip install -r docs/requirements.txt
|
|
|
|
- name: Build docs
|
|
|
|
run: |
|
|
|
|
cd docs
|
|
|
|
sphinx-build -b spelling -n -q -W --keep-going -d _build/doctrees -D language=en_US -j auto . _build/spelling
|