actions-hugo/entrypoint.sh

7 lines
163 B
Bash

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