-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (40 loc) · 1.11 KB
/
docs.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
on:
push:
branches: [master]
jobs:
update-docs:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ${{ github.workspace }}
steps:
- name: install-doxygen
run: sudo apt update && sudo apt install -y doxygen
- name: git-config
run: |
git config --global user.name ${{ github.repository_owner }}
git config --global user.email ${{ github.repository_owner }}@users.noreply.github.com
- name: update-api-docs
uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0
- run: |
git rebase origin/master
sudo bash ./docs/api/generate_api_docs.sh
sudo rsync -a docs/api/sphinx-out/ docs/
git commit --all --amend --no-edit
git push --force-with-lease
- name: update-wiki-pages
uses: actions/checkout@v4
with:
repository: ${{ github.repository }}.wiki
path: wiki
- run: |
rm -f wiki/*.md
cp docs/*.md wiki/
cd wiki
git add .
git commit --amend --no-edit
git push --force-with-lease