Skip to content

Commit 5916814

Browse files
authored
Merge pull request #50 from Sichao25/yus/deploy_doxygen
Host the doxygen documentation through GitHub Pages
2 parents 1f0de6e + 95a3a5b commit 5916814

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ jobs:
1919
# I think this is the minimal set needed for a public repo (https://github.com/github/codeql-action/pull/689).
2020
permissions:
2121
security-events: write
22+
contents: write
2223

2324
steps:
24-
- name: Install CMake
25+
- name: Install Dependencies
2526
run: |
2627
sudo apt-get update -yq
27-
sudo apt-get install -yq cmake
28+
sudo apt-get install -yq cmake doxygen
2829
cmake --version
2930
3031
## Kokkos
@@ -130,3 +131,17 @@ jobs:
130131
if: matrix.compiler == 'g++' && matrix.build_type == 'Release'
131132
uses: github/codeql-action/analyze@v3
132133

134+
- name: Generate Doc
135+
if: matrix.compiler == 'g++' && matrix.build_type == 'Release'
136+
run: doxygen ${{github.workspace}}/build-meshFields/Doxyfile
137+
138+
- name: Upload artifact
139+
if: matrix.compiler == 'g++' && matrix.build_type == 'Release'
140+
uses: actions/upload-pages-artifact@v3
141+
with:
142+
path: ./docs/html
143+
144+
- name: Deploy to GitHub Pages
145+
if: matrix.compiler == 'g++' && matrix.build_type == 'Release'
146+
id: deployment
147+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)