Compress the assets.

This commit is contained in:
Kazuhiro MUSASHI 2020-01-05 20:22:05 +08:00
parent 47535fb096
commit 475a04c1d1
1 changed files with 9 additions and 0 deletions

View File

@ -17,6 +17,15 @@ steps:
else
hugo -e production -v -s
fi
- name: Compress-the-Assets
image: cibuilds/hugo:0.62.1
commands: |
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`
do
gzip -c ${TARGET} > ${TARGET}.gz
done
trigger:
event:
- push