-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (35 loc) · 970 Bytes
/
build_docs.yaml
File metadata and controls
44 lines (35 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build & Deploy Jupyter Book
on:
push:
branches:
- main # Adjust this to your default branch if it's different
jobs:
docs:
name: Build & deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Build book
run: |
jupyter-book build docs
- name: Debug - List files
run: |
ls -la
ls -la docs/_build/html
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html