-
-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (67 loc) · 1.97 KB
/
Copy pathpages.yml
File metadata and controls
81 lines (67 loc) · 1.97 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: pages-build-deployment
on:
push:
branches:
- gh-pages
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
env:
DOXYGEN_VERSION: 1.14.0
DOXYGEN_CONFIG: "doxygen.config"
DOXYGEN_RELEASE_PATH: "doxygen"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout gh-pages for deployment target
uses: actions/checkout@v5
with:
ref: gh-pages
path: gh-pages
- name: Setup Pages
id: pages
uses: actions/configure-pages@v5
- name: Build Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./gh-pages
destination: ./_site
- name: Fix ownership of _site
run: sudo chown -R $(id -u):$(id -g) ./_site
- name: Checkout main for doxygen sources
uses: actions/checkout@v5
with:
ref: main
path: main
- name: Install Doxygen
run: |
mkdir -p ./install
wget https://www.doxygen.nl/files/doxygen-${{ env.DOXYGEN_VERSION }}.linux.bin.tar.gz
tar -xf doxygen-${{ env.DOXYGEN_VERSION }}.linux.bin.tar.gz -C ./install
sudo apt-get update && sudo apt-get install -y graphviz
- name: Build Doxygen docs
run: ./install/doxygen-${{ env.DOXYGEN_VERSION }}/bin/doxygen ./main/${{ env.DOXYGEN_CONFIG }}
- name: Copy Doxygen output
run: |
mkdir -p ./_site/${{ env.DOXYGEN_RELEASE_PATH }}
cp -r ./html/* ./_site/${{ env.DOXYGEN_RELEASE_PATH }}/
- name: Upload artifact for deployment
uses: actions/upload-pages-artifact@v4
with:
path: ./_site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4