-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (52 loc) · 1.45 KB
/
doxygenate.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
60
61
62
63
on:
push:
branches:
- master
paths-ignore:
- 'tests/**'
- 'cmake/**'
- 'extern/**'
name: Build documentation
jobs:
build-spec:
runs-on: ubuntu-latest
container: bioconductor/bioconductor_docker:devel
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Compile markdown
run: |
cd docs/specifications
R -f _build.R
- name: Upload markdown
uses: actions/upload-artifact@v3
with:
name: built-spec
path: docs/specifications/compiled
docs:
runs-on: ubuntu-latest
needs: build-spec
steps:
- uses: actions/checkout@v3
- name: Add Pretty CSS
uses: wei/wget@v1
with:
args: -O docs/doxygen-awesome.css https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/main/doxygen-awesome.css
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@v1
with:
working-directory: docs/
- name: Change permissions
run: sudo chmod 777 docs/html
- name: Download markdown
uses: actions/download-artifact@v3
with:
name: built-spec
path: docs/html/specifications
- name: GH Pages Deployment
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/html
target-folder: docs/
clean: true # Automatically remove deleted files from the deploy branch