File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments