-
Notifications
You must be signed in to change notification settings - Fork 31
33 lines (33 loc) · 1.11 KB
/
doxygen_gh_pages.yaml
File metadata and controls
33 lines (33 loc) · 1.11 KB
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
name: Doxygen
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Install doxygen
# run: sudo apt-get install -y doxygen
run: |
wget https://www.doxygen.nl/files/doxygen-1.9.5.linux.bin.tar.gz
tar -xvzf doxygen-1.9.5.linux.bin.tar.gz
ln -s doxygen-1.9.5/bin/doxygen doxygen
- name: Generate doxygen html
run: |
mkdir build
cd build
wget https://raw.githubusercontent.com/jothepro/doxygen-awesome-css/main/doxygen-awesome.css
ENV_GIT_HEAD=`git log -1 --format="%h (%cd)" | tr -d "\n"` ../doxygen ../doc/Doxyfile
mkdir -p html/doc
cp -r ../doc/manual html/doc/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/html
publish_branch: gh-pages