diff --git a/.drone.yml b/.drone.yml index abea884..fc20703 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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