-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (35 loc) · 1.03 KB
/
build_doc.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
name: Build Documentation
on:
workflow_call: ~
workflow_dispatch: ~
push:
branches: [master]
paths:
- "docs/**"
jobs:
docs:
runs-on: ubuntu-22.04
steps:
- name: Setup Python
uses: actions/setup-python@v4.2.0
with:
python-version: "3.10"
- name: Install dependencies
shell: bash
run: |
sudo apt-get install -y sed jq git
pip install --upgrade sphinx_rtd_theme myst-parser sphinx docutils sphinx-sitemap sphinxcontrib-spelling sphinx-tabs sphinxcontrib-youtube pygments breathe sphinx-copybutton
- uses: actions/checkout@v3
with:
path: current_repo
- name: Build doc
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: current_repo/docs/build.sh
shell: bash
- name: Upload documetation to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./gh-pages