-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (35 loc) · 1.17 KB
/
deploy-book.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
name: Build and Deploy Jupyter Book
on:
push:
branches:
- master
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
sudo apt-get update
sudo apt-get install gfortran
sudo apt-get install openmpi-bin libopenmpi-dev
sudo apt-get install libhdf5-openmpi-dev
git clone https://github.com/pyccel/psydac.git
cd psydac
python -m pip install -r requirements.txt
python -m pip install -r requirements_extra.txt --no-build-isolation
pip install .
pip install jupyter-book ghp-import sphinx_proof
python -m ipykernel install --user --name .iga-python --display-name "IGA-Python"
python -m ipykernel install --user --name v_psydac --display-name "Python (v_psydac)"
- name: Build Jupyter Book
run: jupyter-book build .
- name: Deploy to GitHub Pages
run: ghp-import -n -p -f _build/html
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}