-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.13 KB
/
autodocs.yml
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
35
36
37
38
name: "Docs/Generate autodocs"
on:
push:
branches:
- 'v3.x.x'
paths:
- '_rsruntime/*.py'
- '_rsruntime/**/*.py'
workflow_dispatch:
concurrency:
group: pull_push_on_${{ github.ref }}
jobs:
gen_autodocs:
name: "Generate AutoDocs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: pip
- name: "Explicitly install requirements"
run: "python3 -m pip install -r requirements.txt"
- name: "Execute makedoc.py"
run: "python3 ./devel/makedoc.py"
- name: "Commit and push changes"
uses: EndBug/add-and-commit@v9
with:
add: "./docs/autodocs/"
message: "Automatic documentation update (triggered by ${{ github.actor }}: ${{ github.sha }})"
pull: "--rebase"
docs_to_wiki:
name: "Upload docs to wiki"
needs: gen_autodocs
uses: ./.github/workflows/docs-to-wiki.yml
secrets: inherit