Skip to content

Merge pull request #3 from pnavaro/dependabot/github_actions/actions/… #33

Merge pull request #3 from pnavaro/dependabot/github_actions/actions/…

Merge pull request #3 from pnavaro/dependabot/github_actions/actions/… #33

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@v5
- name: Install Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
- name: Install dependencies
shell: bash -l {0}
run: |
conda env create -f environment.yml -n runenv
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
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./notebooks/_build/html