-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (35 loc) · 891 Bytes
/
docs.yaml
File metadata and controls
39 lines (35 loc) · 891 Bytes
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
name: Docs
on:
push:
branches:
- main
paths-ignore:
- '.github/workflows/builds.yaml'
- ".github/workflows/releases.yaml"
- ".github/workflows/publish.yaml"
- '*.md'
pull_request:
branches:
- main
jobs:
generate_docs:
name: Generate Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install pip dependencies
run: |
sudo apt update
sudo apt install -y doxygen
pip install pipenv
pipenv install --dev
- name: Build
run: |
# spatialdyn needs to be in the virtual environment.
pipenv run pip install -e .
pipenv run make -C docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html