-
Notifications
You must be signed in to change notification settings - Fork 145
45 lines (35 loc) · 1.14 KB
/
update_documentation.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
name: Generate and Deploy Doxygen Documentation
on:
push:
branches:
- master
- github-action-api-docs # Modify this to match your master branch name
workflow_dispatch: # Allow manual triggering
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential cmake doxygen graphviz libboost-all-dev libeigen3-dev
- name: Configure and Build Project
run: |
mkdir build
cd build
cmake ..
make doc
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/doc/html # Directory containing the HTML documentation
if: ${{ github.event.release.tag_name }}
destination_dir: ./releases/${{ github.event.release.tag_name }}
keep_files: false
commit_message: Release ${{ github.event.release.tag_name }}