-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 1.56 KB
/
deploy-doxygen.yml
File metadata and controls
61 lines (53 loc) · 1.56 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 'CD - Doxygen documentation'
run-name: 'Doxygen documentation - "${{ github.ref_name }}"'
permissions:
contents: read
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
timeout-minutes: 10
steps:
- uses: actions/checkout@v6.0.2
with:
ref: ${{ github.ref }}
repository: '${{ github.repository }}'
fetch-depth: 1
submodules: true
- name: 'Install dependencies'
run: |
sudo apt update && sudo apt install -y libgl1-mesa-dev qt6-base-dev texlive-latex-base texlive-latex-recommended texlive-latex-extra graphviz texlive-xetex libxkbcommon-dev xorg-dev libwayland-dev libudev-dev
./scripts/unix/linux/install-doxygen.sh
./scripts/unix/linux/install-cmake.sh
sudo apt update
- name: 'Generate documentation'
run: ./scripts/unix/build.sh release --doc
- name: 'Prepare site folder'
run: |
mkdir -p ./_site
cp -r documentation/.doxygen/html/* ./_site/
- name: 'Upload artifact for pages'
uses: actions/upload-pages-artifact@v5.0.0
with:
path: ./_site
deploy:
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
needs: build
permissions:
contents: write
pages: write
id-token: write
environment:
name: 'github-pages'
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: 'Deploy to GitHub Pages'
id: deployment
uses: actions/deploy-pages@v5