actions-hugo/entrypoint.sh

10 lines
217 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 {} \+
echo "success=success" >> $GITHUB_OUTPUT
return 0