File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Documentation (develop)
2+
3+ on :
4+ schedule :
5+ # * is a special character in YAML so you have to quote this string
6+ - cron : ' 55 19 * * *'
7+ # workflow_dispatch:
8+
9+ jobs :
10+ build-dev-documentation :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Setup env.
16+ run : |
17+ sudo apt-get update && sudo apt-get install -y git openmpi-bin libopenmpi-dev autoconf automake autotools-dev libopenblas-dev make git m4 python3 doxygen fonts-freefont-ttf graphviz
18+ git clone https://github.com/ExtremeFLOW/doxygen-awesome-css doc/doxygen-awesome-css
19+ git clone --depth 1 https://github.com/ExtremeFLOW/json-fortran/
20+ cd json-fortran
21+ mkdir build && cd build
22+ cmake -DCMAKE_INSTALL_PREFIX=${HOME}/pkg/json-fortran -DUSE_GNU_INSTALL_CONVENTION=ON ..
23+ make -j$(nproc) && make install && cd ../../
24+ echo "PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:${HOME}/pkg/json-fortran/lib/pkgconfig/" >> $GITHUB_ENV
25+ echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${HOME}/pkg/json-fortran/lib/" >> $GITHUB_ENV
26+ - name : Doxygen
27+ run : |
28+ ./regen.sh
29+ ./configure FC=${FC}
30+ make html
31+
32+ # Deploy the HTML documentation to GitHub Pages
33+ - name : GH Pages Deployment
34+ uses : peaceiris/actions-gh-pages@v3
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ publish_dir : ./doc/html/
38+ allow_empty_commit : false
39+ force_orphan : false
40+ publish_branch : gh-pages
41+ destination_dir : docs/develop
42+ keep_files : false
43+ enable_jekyll : true
You can’t perform that action at this time.
0 commit comments