Skip to content

Commit 8e9528d

Browse files
committed
Create docs.yml
1 parent 503a0ec commit 8e9528d

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
workflow_dispatch: # Allow manual runs from the Actions tab
7+
8+
# Only one Pages deployment at a time
9+
concurrency:
10+
group: pages
11+
cancel-in-progress: false
12+
13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
jobs:
19+
build:
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Checkout repository
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: recursive
27+
28+
- name: Install Doxygen
29+
run: |
30+
sudo apt-get update
31+
sudo apt-get install -y doxygen graphviz
32+
33+
- name: Run Doxygen
34+
run: doxygen Doxyfile
35+
36+
- name: Upload Pages artifact
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: docs/html
40+
41+
deploy:
42+
needs: build
43+
runs-on: ubuntu-latest
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
48+
steps:
49+
- name: Deploy to GitHub Pages
50+
id: deployment
51+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)