Skip to content

Commit 1f81920

Browse files
committed
experiment with GitHub CI
1 parent 6c3cf57 commit 1f81920

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Doxygen Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Trigger the workflow on changes to the `main` branch
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
# Step 1: Checkout the repository
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
# Step 2: Set up Doxygen
18+
- name: Install Doxygen and Graphviz
19+
run: sudo apt-get install doxygen graphviz -y
20+
21+
# Step 3: Generate Doxygen documentation
22+
- name: Generate Doxygen Documentation
23+
run: doxygen ./project/doxygen/Doxyfile
24+
25+
# Step 4: Deploy to `gh-pages` branch
26+
- name: Deploy to GitHub Pages
27+
uses: peaceiris/actions-gh-pages@v3
28+
with:
29+
github_token: ${{ secrets.GITHUB_TOKEN }}
30+
publish_branch: gh-pages
31+
publish_dir: ./docs/html
32+

0 commit comments

Comments
 (0)