Skip to content

Commit 7e0c229

Browse files
committed
chore: add deploy action
1 parent 2248076 commit 7e0c229

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy Doxygen Documentation
2+
3+
on:
4+
push:
5+
branches: [ main ] # or your default branch
6+
workflow_dispatch: # allows manual triggering
7+
8+
jobs:
9+
deploy-documentation:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Install Doxygen
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y doxygen graphviz
22+
23+
- name: Generate Doxygen Documentation
24+
run: doxygen
25+
26+
- name: Deploy to GitHub Pages
27+
uses: JamesIves/github-pages-deploy-action@v4
28+
with:
29+
folder: generated/html
30+
branch: gh-pages # The branch the action should deploy to
31+
clean: true # Automatically remove deleted files from the deployment

0 commit comments

Comments
 (0)