-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.11 KB
/
make_docs.yml
File metadata and controls
46 lines (35 loc) · 1.11 KB
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
name: Make docs and publish to GitHub Pages
on: [push]
jobs:
make_docs:
runs-on: ubuntu-latest
steps:
- name: Checkout dev branch
uses: actions/checkout@v2
- name: Checkout docs branch
uses: actions/checkout@v2
with:
ref: gh-pages
path: ./gh-pages
- run: cd gh-pages; git rm -rf . ; cd ..
- run: sudo mv -f src gh-pages/src
- run: sudo mv -f examples gh-pages/examples
- run: sudo mv -f extras gh-pages/extras
- run: sudo cp README.md gh-pages/README.md
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@v1.1.0
with:
working-directory: ./gh-pages
doxyfile-path: ../Doxyfile
- run: sudo apt-get install tree
- run: sudo touch gh-pages/html/.nojekyll
- run: mv gh-pages/html gh-pages/docs
- run: tree
- uses: EndBug/add-and-commit@v7
with:
author_name: Docs Robot
author_email: robot@example.com
message: "Committing documentation changes"
branch: gh-pages
cwd: ./gh-pages/
add: docs