Skip to content

deploy-book

deploy-book #265

Workflow file for this run

name: deploy-book
on:
push:
branches:
- 'publication'
workflow_run:
workflows: ["Publish on Push to GitHub"]
types:
- completed
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install graphviz
run: sudo apt-get update && sudo apt-get install graphviz
# Install dependencies
- name: Set up Python 3.10.15
uses: actions/setup-python@v5
with:
python-version: 3.10.15
- name: Install dependencies
run: |
pip install -r ./book/requirements.txt
# Build the book
- name: Build the book
run: |
jupyter-book build book
- name: Create cname file
uses: finnp/create-file-action@master
env:
FILE_NAME: "./book/_build/html/CNAME"
FILE_DATA: "book.odis.org"
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html