-
Notifications
You must be signed in to change notification settings - Fork 16
46 lines (42 loc) · 1.19 KB
/
document.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: Build and Deploy Document
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: install openblas
run: |
sudo apt-get update
sudo apt-get -y install libblas-dev liblapack-dev
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
cache: "pip"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir -r requirements.txt
pip install nbconvert
pip install --upgrade pip ipython ipykernel
ipython kernel install --name "python3" --user
sudo apt-get install pandoc
- name: Build the document
run: |
cd doc/source/tutorials
bash build_tutorials.sh
cd ../..
make html
cd ..
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc/html # The folder the action should deploy.