-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (38 loc) · 938 Bytes
/
build.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
name: build-docs
on:
push:
branches:
- dev-build
- master
pull_request:
branches:
- master
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8 and conda/mamba
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
mamba-version: "*"
channels: conda-forge
activate-environment: gmtjb
environment-file: environment_for-building-jb.yml
use-mamba: true
- name: Test environment
shell: bash -l {0}
run: |
conda info
conda list
- name: Build book
shell: bash -l {0}
run: |
bash generate_html.bash
- name: Deploy to gh-pages
# if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3.8.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html