Skip to content

Commit f9cbe6d

Browse files
tuedajodavies
authored andcommitted
ci: add a check for HTML manual files
1 parent 1063b4d commit f9cbe6d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,19 @@ jobs:
291291
(
292292
cd doc/manual/manual
293293
rm -f images.aux images.idx images.log images.pdf images.pl images.tex internals.pl labels.pl WARNINGS
294+
# Print generated files.
295+
ls -A -C
296+
# Check if there are no unexpected files.
297+
for f in $(ls -A); do
298+
case "$f" in
299+
index.html|manual.html|manual.css|img*.svg)
300+
;;
301+
*)
302+
echo "Error: unexpected file: $f" >&2
303+
exit 1
304+
;;
305+
esac
306+
done
294307
)
295308
cp -r doc/manual/manual $distname
296309
tar -c $distname/* | gzip -c -9 > $distname.tar.gz

0 commit comments

Comments
 (0)