Skip to content

Update build_deploy.yml #5

Update build_deploy.yml

Update build_deploy.yml #5

Workflow file for this run

name: Deploy Jupyter Book to GitHub Pages
on:
push:
branches:
- main
- docs #temp to be removed upon merge
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.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r ./docs/requirements.txt
pip install jupyter-book
- name: Build Jupyter Book
run: jupyter-book build docs/
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN_DOCS_BRAINKB }}
publish_dir: docs/_build/html