-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (35 loc) · 1.23 KB
/
build_deploy_jbdoc.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
41
42
43
44
45
46
47
48
49
50
51
52
name: API docs / jupyterbook
# We should trigger this from an upload event
on:
push: # We publish the beta docs as well - but on a different url (by branch name)
branches:
- main
- development
workflow_dispatch:
jobs:
deploy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: ./.github/workflows/envs/build_jb.yml
cache-downloads: true
# - name: install jupyterbook dependencies
# run: |
# pip install jupyter-book
# pip install jupytext
- name: Build docs with jupyterbook
shell: bash -l {0}
run: |
cd Jupyterbook
./build_book.sh
## Always deploy to version directory
- name: Deploy JB
uses: peaceiris/actions-gh-pages@v3
with:
# deploy_key: ${{ secrets.GH_PAGES_DEPLOY_PR_KEY }}
github_token: ${{ secrets.GITHUB_TOKEN }}
destination_dir: ${{ github.ref_name }} # The dest dir is identified by branch
publish_dir: jupyterbook/_build/html