-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (38 loc) · 1.27 KB
/
publish.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
name: Publish
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Set up JDK 11 for jNeuroML etc
uses: actions/setup-java@v3
with:
java-version: 11
distribution: 'temurin'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# pip install -r requirements.txt
pip install -r requirements-book.txt
sudo apt-get update -y
sudo apt-get install build-essential -y
sudo apt-get install texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex latexmk -y
- name: Disable building jupyter-books
run: |
sed -i "s/execute_notebooks.*/execute_notebooks: 'off'/" source/_config.yml
- name: Run jupyter-book
run: |
jupyter-book clean ./source
jupyter-book build ./source --builder pdflatex
mv ./source/_build/latex/neuroml-documentation.pdf ./source/_static/files/
jupyter-book build ./source
- name: Import to GitHub pages
run: |
ghp-import -c "docs.neuroml.org" -n -p -f ./source/_build/html