-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.03 KB
/
deploy_doxygen_page.yml
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
43
name: Doxygen GitHub Pages Deploy Action
on:
push:
branches:
- main
jobs:
doxygen:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "MasterLaplace"
- name: Install Doxygen
run: |
sudo apt-get install doxygen
- name: Generate Doxygen Documentation
run: |
doxygen Doxyfile.cfg
- name: Create gh-pages branch
run: |
git branch -D gh-pages || true
git checkout -b gh-pages
- name: Copy documentation to gh-pages branch
run: |
cp -r docs/Flakkari/html/* docs/
- name: Push documentation to gh-pages branch
run: |
git add .
git commit -m "deploy(root): Deploying documentation to GitHub Pages"
git push origin gh-pages
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}