-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (57 loc) · 1.64 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
50
51
52
53
54
55
56
57
58
59
name: Build/deploy docs
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: "Build docs"
runs-on: self-hosted
container:
image: firedrakeproject/firedrake-docdeps:latest
steps:
- name: Fix permissions
run: |
sudo chmod -R 777 $GITHUB_WORKSPACE /github /__w/_temp
- uses: actions/checkout@v2
- name: Install
run: |
. /home/firedrake/firedrake/bin/activate
python -m pip install -e .
python -m pip install sphinx
python -m pip install sphinxcontrib-bibtex
- name: Check documentation links
if: ${{ github.ref == 'refs/heads/master' }}
run: |
. /home/firedrake/firedrake/bin/activate
cd docs
make linkcheck
- name: Build docs
run: |
. /home/firedrake/firedrake/bin/activate
cd docs
make html
make latex
make latexpdf
- name: Copy manual to HTML tree
run: |
cd docs
cp build/latex/Irksome.pdf build/html/_static/manual.pdf
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
name: github-pages
path: /__w/Irksome/Irksome/docs/build/html
retention-days: 1
- name: Deploy docs
if: ${{ github.ref == 'refs/heads/master' }}
uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: ./docs/build/html
keep_history: false
allow_empty_commit: false
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}