Skip to content

Update book.yml

Update book.yml #40

Workflow file for this run

name: book
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Install pandoc
run: |
sudo apt-get -yq update
sudo apt-get install -yq pandoc texlive-xetex texlive-fonts-extra gfortran ffmpeg
- name: Checkout
uses: actions/checkout@v6
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
- name: Install dependencies
shell: bash -l {0}
run: |
conda create python=3.12 -n runenv
conda install -y jupyter-book jupyter
conda run -n runenv python -m ipykernel install --user --name python3
- name: Build the book
shell: bash -l {0}
run: conda run -n runenv jupyter-book build notebooks --html
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./notebooks/_build/html