-
Notifications
You must be signed in to change notification settings - Fork 55
49 lines (43 loc) · 1.3 KB
/
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
47
48
49
name: docs
on:
push:
branches: [master, main]
#pull_request: TODO: Enable me
# branches:[master, main]
jobs:
tests:
name: "Build docs"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
id: setup_python
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: vplanet
environment-file: environment.yml
- name: Install
id: install
if: steps.setup_python.outcome == 'success'
shell: bash -l {0}
run: |
sudo apt-get install -y doxygen
sudo apt-get install -y doxygen-doc
python -m pip install -U pip
python -m pip install -e .
- name: Build
id: build
if: steps.install.outcome == 'success'
shell: bash -l {0}
run: |
cd docs
make html
cp sphinx_rtd_theme/static/css/theme.css .build/html/_static/css/theme.css
touch .build/html/.nojekyll
- name: Publish
uses: JamesIves/github-pages-deploy-action@4.1.2
# NOTE: Triggered only when the PR is *merged* (event_name == 'push')
if: steps.build.outcome == 'success' && github.event_name == 'push'
with:
branch: gh-pages
folder: docs/.build/html