-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (39 loc) · 1.08 KB
/
build-deploy-docs.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
name: Build and deploy docs
on:
pull_request:
types:
- opened
- synchronize
- reopened
push:
branches: [ 'master' ]
paths:
- '.github/workflows/build-deploy-docs.yml'
- 'docs/**'
jobs:
build-and-deploy-docs:
name: Build and Deploy Jupyter Book
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Install Conda environment
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: environment.yml
extra-specs: |
python=3.11
- name: Create Jupyter kernelspec
run: |
python -m ipykernel install --user --name wrfotron --display-name "wrfotron"
- 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