-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (35 loc) · 1.22 KB
/
doxygen-gh-pages.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
name: Build doxygen pages and publish to github pages
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
container:
# relies on repository name being all lower case
image: ghcr.io/${{ github.repository }}
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure CMake
run: |
git config --global --add safe.directory ${{github.workspace}}
cmake -B ${{github.workspace}}/build
- name: Build
run: |
git config --global --add safe.directory ${{github.workspace}}
cmake --build ${{github.workspace}}/build --target sjef-doc
rsync -av ${{github.workspace}}/build/html .
mkdir -p html/DoxygenTagFiles
find ${{github.workspace}}/build -name '*.tag' -exec cp {} html/DoxygenTagFiles \;
- name: Deploy
uses: peaceiris/[email protected]
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./html