-
Notifications
You must be signed in to change notification settings - Fork 13
59 lines (49 loc) · 1.52 KB
/
deploy_documentation.yaml
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
53
54
55
56
57
58
59
name: Build docs and deploy to GitHub Pages
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "1.5.8-0"
environment-file: conda/doc-env.yml
init-shell: >-
bash
cache-environment: true
post-cleanup: "all"
- name: Install current gplately
run: |
pip install . --no-binary :all: --no-cache-dir --no-dependencies
- name: test pygmt
run: python -c "import pygmt"
shell: bash -el {0}
- name: test jupyter-nbconvert
run: jupyter-nbconvert --version
shell: bash -el {0}
- name: test pdoc
run: pdoc --version
shell: bash -el {0}
- name: Generate documentation with pdoc3
run: pdoc --config latex_math=True --template-dir .pdoc_template --html -o api --force gplately
shell: bash -el {0}
- name: Convert jupyter notebooks to html
run: jupyter-nbconvert --to=html --output-dir=api/gplately/ Notebooks/*.ipynb
shell: bash -el {0}
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4.2.2
with:
branch: gh-pages
folder: api/gplately/
target-folder: dev-doc/