-
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (34 loc) · 1.08 KB
/
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
31
32
33
34
35
36
37
name: Doxygen GitHub Pages Deploy Action
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
deploy:
permissions:
contents: write # for JamesIves/github-pages-deploy-action to push changes in repo
runs-on: ubuntu-latest
container: egecetinn/alpine
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- name: Rename templates
run: sh scripts/firstName.sh -n Repo-Init
- name: Configure
run: cmake -S . -B build
- name: Generate Doxygen Documentation
run: cmake --build build --target docs
- name: Create .nojekyll (ensures pages with underscores work on gh pages)
run: touch doc/html/.nojekyll
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@dc18a3c6b46d56484cb63f291becd7ed4f0269b9 # v4.7.1
with:
branch: gh-pages
folder: doc/html