generated from ARCTraining/template-jb-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 987 Bytes
/
deploy-book.yml
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
name: deploy
on:
push:
branches:
- main
jobs:
deploy-book:
name: Build and Deploy Jupyter Book
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- name: Install Conda environment
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: arcdocs-jb
environment-file: environment.yml
python-version: 3.9
auto-activate-base: false
auto-update-conda: false
- name: Create Jupyter kernelspec
run: |
python -m ipykernel install --user --name data_vis --display-name "data_vis"
- name: Build Jupyter Book
run: |
jupyter-book build docs
- name: Deploy the book's HTML to GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html