Skip to content

Merge pull request #181 from NeuroML/pg_updates #232

Merge pull request #181 from NeuroML/pg_updates

Merge pull request #181 from NeuroML/pg_updates #232

Workflow file for this run

name: Publish
on:
push:
branches: [ master ]
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@v1
with:
java-version: 11
- 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