-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 914 Bytes
/
docs_update.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
name: build github_pages documentation
on:
push:
branches:
- master
# branches: "*"
jobs:
build_docs_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: 3.12
- name: prepare env
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo apt-get update
sudo apt-get install -y git rsync python3-pip
shell: bash
- name: Install dependencies
run: |
pip3 install -r requirements.txt
pip3 install sphinx sphinx-rtd-theme sphinx_md ghp-import myst-parser
shell: bash
- name: Build HTML
run: |
make html
shell: bash
- name: Run ghp-import
run: |
ghp-import -n -p -f _build/html
shell: bash