Skip to content

Publish

Publish #375

Workflow file for this run

name: Publish
on:
push:
branches: [ main ]
schedule:
- cron: "37 22 * * 1,3,5"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Set up JDK 11 for jNeuroML etc
uses: actions/setup-java@v4
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