-
Notifications
You must be signed in to change notification settings - Fork 20
34 lines (32 loc) · 996 Bytes
/
update_dev_docs.yml
File metadata and controls
34 lines (32 loc) · 996 Bytes
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
name: Update docs for dev PR
on:
pull_request:
branches:
- dev
jobs:
update_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.SERVICE_TOKEN }}
ref: ${{ github.head_ref }}
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install -e .[dev] -e .[docs] --no-cache-dir
- name: Generate docs
run: |
python src/aind_data_schema/utils/docs/model_generator.py
python src/aind_data_schema/utils/docs/registries_generator.py
python src/aind_data_schema/utils/docs/doc_generator.py
sphinx-build -b html docs/source/ docs/build/html
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "update docs"
add: '["docs"]'