-
Notifications
You must be signed in to change notification settings - Fork 61
52 lines (42 loc) · 1.11 KB
/
Copy pathdeploy-book.yml
File metadata and controls
52 lines (42 loc) · 1.11 KB
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
45
46
47
48
49
50
51
52
name: Build and Deploy Jupyter Book
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
concurrency:
group: deploy-jupyter-book
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Conda environment
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: pytsa
environment-file: env.yml
auto-activate-base: false
- name: Install build tools
run: |
python -m pip install --upgrade pip
pip install "jupyter-book<2" ghp-import
- name: Show tool versions
run: |
jupyter-book --version
ghp-import --version
- name: Build Jupyter Book
run: jupyter-book build . --builder html
- name: Verify build output
run: |
test -d _build/html
ls -la _build/html | head -n 20
- name: Deploy to GitHub Pages
run: ghp-import -n -p -f _build/html