blob: 0794c1c6791c196de8098c47a92746e37c333cf1 (
plain)
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
|
name: Generate and Deploy Doxygen Documentation
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout repository
uses: actions/checkout@v4
# Install Doxygen and Graphviz
- name: Set up Doxygen
run: sudo apt-get install -y doxygen graphviz
# Clone the m.css repository
- name: Clone m.css
run: |
git clone --depth 1 https://github.com/mosra/m.css.git mcss
ls -R mcss
# Configure m.css by copying necessary files
- name: Configure m.css
run: |
cp mcss/doxygen/m-dark+documentation.compiled.css ./docs/m-dark.css
cp mcss/doxygen/m-dark.compiled.js ./docs/m.js
# Generate Doxygen documentation
- name: Generate Doxygen documentation
run: doxygen docs/Doxyfile
# Deploy the generated documentation to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/html
|