From 42ad3a56d725a5589f6331c12fe131db6baa72ae Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 2 May 2021 14:58:22 +0900 Subject: [PATCH] 6th try --- .drone.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 29840a9..a437f6e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -84,11 +84,8 @@ steps: FONT_DIR: assets/font/ CONFIG: assets/tcardgen.yaml commands: - - find ${OGP_DIR} -type f -name '*.png' | xargs -t --no-run-if-empty rm - - LIST=`find ${CONTENT_DIR} -type f -name '*.md' | grep -v '_index'` - - for ARTICLE in ${LIST} ; do - - /tcardgen -f ${FONT_DIR} -o ${OGP_DIR} -c ${CONFIG} ${ARTICLE} - - done + - find static/ogp/ -type f -name '*.png' | xargs -t --no-run-if-empty rm + - find content/ -type f -name '*.md' | grep -v '_index' | xargs -n 1 -t /tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml - name: hugo image: cibuilds/hugo:0.83.0