Skip to content

Commit 5d4efbe

Browse files
committed
Simplification of github workflow
Merge branch 'main' into students
2 parents f9f8333 + f2d04fa commit 5d4efbe

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

.github/workflows/doxygen-pages.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,16 @@ jobs:
3030
working-directory: ./libs/TKJHAT/docs
3131
run: doxygen Doxyfile
3232

33-
# Collect the generated site regardless of OUTPUT_DIRECTORY setting
34-
- name: Collect site
33+
# Sanity check the expected output path
34+
- name: Check output exists
3535
run: |
36-
set -e
37-
if [ -d "libs/TKJHAT/docs/out/html" ]; then
38-
SRC="libs/TKJHAT/docs/out/html"
39-
else
40-
SRC="libs/TKJHAT/docs/html"
41-
fi
42-
mkdir -p site
43-
cp -a "$SRC/." site/
36+
test -f libs/TKJHAT/docs/out/html/index.html || (echo "Missing libs/TKJHAT/docs/out/html/index.html"; exit 1)
4437
38+
# Upload exactly what Doxygen generated
4539
- name: Upload Pages artifact
4640
uses: actions/upload-pages-artifact@v3
4741
with:
48-
path: site
42+
path: libs/TKJHAT/docs/out/html
4943

5044
deploy:
5145
needs: build

0 commit comments

Comments
 (0)