-
Notifications
You must be signed in to change notification settings - Fork 30
44 lines (39 loc) · 1.21 KB
/
gh_pages.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
name: github pages
on:
schedule:
- cron: '0 0 * * *' # Auto-trigger workflow everyday at 00:00
push:
branches: [master]
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Doxygen-1.9.3
run: |
echo "Install wget"
sudo apt install wget
echo "Install graphviz"
sudo apt install graphviz
echo "Fetching binary distribution"
wget https://sourceforge.net/projects/doxygen/files/rel-1.9.3/doxygen-1.9.3.linux.bin.tar.gz
echo "Extract files from tar file"
tar -xvf doxygen-1.9.3.linux.bin.tar.gz
sudo mv doxygen-1.9.3/bin/doxygen .
- name: Doxygen Action
run: |
echo "Preparing gencodecs files for documentation"
make docs
echo "Generating HTML output"
./doxygen
- name: Deploy
uses: peaceiris/[email protected]
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./docs/html