Skip to content

Merge pull request #48 from ndcbe/contributed-notebooks #65

Merge pull request #48 from ndcbe/contributed-notebooks

Merge pull request #48 from ndcbe/contributed-notebooks #65

name: Build and Publish JupyterBook
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install jupyter-book ghp-import
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install -y texlive-full # Install full TeX Live distribution
- name: Build JupyterBook
run: jupyter-book build .
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.PUBLISH_WEBSITE_ACCESS_TOKEN }}
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
ghp-import -n -p -f _build/html -b gh-pages