-
Notifications
You must be signed in to change notification settings - Fork 119
56 lines (51 loc) · 1.77 KB
/
apidoc.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: "Update API docs"
on:
push:
branches:
- "develop"
concurrency: api-${{ github.ref }}
jobs:
apidoc:
name: Update API docs
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
repository: godot-escoria/escoria-demo-game
ref: "develop"
path: game
- name: "Checkout docs repo"
uses: actions/checkout@v2
with:
token: ${{ secrets.ESCORIA_DEPLOYMENT_TOKEN }}
repository: godot-escoria/escoria-docs
ref: "devel"
fetch-depth: 0
path: docs
- name: Remove existing docs
run: |
mv docs/api/index.rst .
rm -rf docs/api/*
mv index.rst docs/api
- name: "Update docs"
uses: docker://gdquest/gdscript-docs-maker:1
with:
entrypoint: "bash"
args: "-c \"BASEDIR=$(pwd) && cd /app && ./generate_reference $BASEDIR/game -o $BASEDIR/docs/api -d addons/escoria-core\""
- name: "Update ESC reference"
run: |
apt update && apt install -y python3 python3-pip
pip3 install m2r2
cd docs
python3 extractesc.py
git status
- name: "Commit"
uses: EndBug/[email protected]
with:
add: '["api", "scripting/z_esc_reference.rst"]'
message: 'docs: Automatic update of API docs'
push: true
cwd: "docs"
branch: "devel"