-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (27 loc) · 998 Bytes
/
docs.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
name: Build and Deploy Docs
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Doxygen
run: sudo sh -c 'echo deb http://cz.archive.ubuntu.com/ubuntu focal main universe >> /etc/apt/sources.list' && sudo apt-get update && sudo apt-get install -y -t focal doxygen
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Checkout Doxygen Awesome
uses: Mushus/checkout-submodule@v1.0.1
with:
submodulePath: ./docs/doxygen-awesome-css
- name: Generate Documentation
run: ./build-docs.sh
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.4.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./docs-output/html # The folder the action should deploy.