-
Notifications
You must be signed in to change notification settings - Fork 33
49 lines (39 loc) · 1.04 KB
/
docbuild.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: Documentation Build
on:
pull_request:
push:
tags:
- "*"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docs_build:
runs-on: ubuntu-22.04
env:
PYVISTA_OFF_SCREEN: True
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v2
- name: Install tetgen
run: pip install .
- name: Build Documentation
run: |
pip install -r requirements_docs.txt
make -C doc html
- name: Deploy
uses: JamesIves/[email protected]
if: startsWith(github.ref, 'refs/tags/')
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: doc/_build/html
CLEAN: true