-
Notifications
You must be signed in to change notification settings - Fork 16
49 lines (41 loc) · 1015 Bytes
/
update_doxygen_pages.yml
File metadata and controls
49 lines (41 loc) · 1015 Bytes
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
44
45
46
47
48
49
name: Update Doxygen Page
on:
push:
branches:
- master
jobs:
doxygen:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Install Doxygen
run: |
sudo apt-add-repository universe
sudo apt-get update
sudo apt-get install doxygen
- name: Checkout Original
uses: actions/checkout@v4
with:
path: original
- name: Run Doxygen
working-directory: original
run: doxygen
- name: Checkout Pages
uses: actions/checkout@v4
with:
path: pages
- name: Set up pages directory
working-directory: pages
run: |
git checkout --orphan gh-pages
git rm -rf .
cp -r ../original/html/. .
- name: Update Github
working-directory: pages
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add .
git commit -m "Update page from action"
git push -f origin gh-pages