-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (37 loc) · 1.18 KB
/
Docs Generation.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
name: Docs Generation
on:
push:
branches:
- master
jobs:
GenerateDocs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout base code
uses: actions/checkout@v4
with:
path: kinference
- name: Checkout wiki
uses: actions/checkout@v4
with:
repository: ${{github.repository}}.wiki
path: kinference-wiki
- name: Python setup
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install dependencies
working-directory: kinference
run: |
python -m pip install -r docs-generator/requirements.txt
- name: Generate docs
working-directory: kinference
run: |
python docs-generator/main.py --core_doc_file $GITHUB_WORKSPACE/kinference-wiki/KInference-Core-supported-operators.md --tfjs_doc_file $GITHUB_WORKSPACE/kinference-wiki/KInference-TensorFlow.js-supported-operators.md
- name: Commit updated documentation
uses: stefanzweifel/git-auto-commit-action@v5
with:
repository: kinference-wiki
commit_message: 'CI: Update documentation'