-
Notifications
You must be signed in to change notification settings - Fork 4
83 lines (68 loc) · 2.22 KB
/
doc_generation-6.0.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Automatic generation of doxygen and javadoc files for Evio's C, C++, and Java code
# on the evio-6.0 branch which will be copied and checked into the gh-pages branch.
name: Documentation generation CI
on:
push:
branches: [ evio-6.0 ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# checkout the evio-6.0 branch
- uses: actions/checkout@v2
# generate the C doxygen files
- name: Doxygen Action C
uses: mattnotmitt/[email protected]
with:
working-directory: '.'
doxyfile-path: 'doc/doxygen/DoxyfileC'
# generate the C++ doxygen files
- name: Doxygen Action C++
uses: mattnotmitt/[email protected]
with:
working-directory: '.'
doxyfile-path: 'doc/doxygen/DoxyfileCC'
# generate the javadoc files
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Javadoc Action
run: ant -noinput -buildfile build.xml javadoc
# clean up the javadoc files including removing timestamps. OPTIONAL.
- name: Tidy up the javadocs
id: tidy
uses: cicirello/javadoc-cleanup@v1
with:
path-to-root: doc/javadoc
# store the doc files
- name: Upload Output Directory
uses: actions/upload-artifact@v2
with:
name: evio-doc-files
path: doc
retention-days: 1
copy:
runs-on: ubuntu-latest
needs: build
steps:
# checkout the gh-pages branch
- uses: actions/checkout@v2
with:
ref: gh-pages
# download the doc files, most of which are generated above
- name: Download Output Directory
uses: actions/download-artifact@v2
with:
name: evio-doc-files
path: doc-6.0
# add, commit and push to gh-pages
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
author_name: Carl Timmer
author_email: [email protected]
message: 'Update docs'
branch: gh-pages
add: '["doc-6.0/doxygen/C/html/*", "doc-6.0/doxygen/CC/html/*", "doc-6.0/javadoc/", "doc-6.0/users_guide/evio_Users_Guide.pdf"]'