actions-hugo/entrypoint.sh
2024-12-12 01:33:04 +01:00

9 lines
175 B
Bash

#!/bin/sh -l
hugo
find ./public -type f \
-regex ".*\.\(css\|html\|js\|json\|svg\|xml\)$" \
-exec brotli --best -f {} \+ \
-exec gzip --best -k -f {} \+
exit 0