Skip to content

Commit f7bb96b

Browse files
authored
Create doxygen.yml
1 parent c2d1381 commit f7bb96b

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/doxygen.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Generate Doxygen Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
generate-docs:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Step 1: Check-out current repository
15+
- name: Checkout current repository
16+
uses: actions/checkout@v4
17+
18+
# Step 2: Clone SinricPro repository
19+
- name: Clone external repository
20+
run: |
21+
git clone https://github.com/sinricpro/esp8266-esp32-sdk
22+
23+
# Step 3: Install Doxygen
24+
- name: Install Doxygen
25+
run: |
26+
sudo apt-get install -y doxygen graphviz
27+
28+
# Step 4: Generate Documentation
29+
- name: Generate Documentation
30+
run: |
31+
doxygen Doxyfile
32+
33+
# Step 5: Deploy to GitHub Pages
34+
- name: Deploy to GitHub Pages
35+
uses: peaceiris/actions-gh-pages@v4
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
publish_dir: ./docs

0 commit comments

Comments
 (0)