From 7103a07f66a64ad9f1da1aa6e54001b7bfc71839 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 2 May 2021 15:49:23 +0900 Subject: [PATCH] 12th try. --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index 6448a08..4159a84 100644 --- a/.drone.yml +++ b/.drone.yml @@ -84,6 +84,8 @@ steps: - unzip /tmp/font.zip -d /tmp/font - find /tmp/font -type f -name *.ttf | xargs -I% -n 1 cp -p % assets/font/ - find content/ -type f -name '*.md' | grep -v '_index' | xargs -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml + - find static/ogp/ -type f -name '*.png' | xargs -I% -n 1 img2webp -lossy -q 50 % -o `echo % | sed -e 's/png/webp'` + - find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm - name: hugo image: cibuilds/hugo:0.83.0