-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (40 loc) · 1.17 KB
/
ci.yml
File metadata and controls
48 lines (40 loc) · 1.17 KB
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
name: ci
on:
push:
branches:
- master
repository_dispatch:
types:
- update_documentation
jobs:
build-deploy:
name: Build and deploy the documentation
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: update submodules
run: |
git submodule update --remote --recursive
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y make
python -m pip install -U pip
pip install -r requirements.txt
pip install ghp-import
- name: Build
run: |
cd docs
make html
- name: Deploy on the branch gh-pages
run: |
ghp-import -n -f -p ./docs/_build/html