12th try.

This commit is contained in:
Kazuhiro MUSASHI 2021-05-02 15:49:23 +09:00
parent e01adfc1fe
commit 7103a07f66
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ steps:
- unzip /tmp/font.zip -d /tmp/font - unzip /tmp/font.zip -d /tmp/font
- find /tmp/font -type f -name *.ttf | xargs -I% -n 1 cp -p % assets/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 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 - name: hugo
image: cibuilds/hugo:0.83.0 image: cibuilds/hugo:0.83.0