From 5be9d541aba69bf74351b2a81c376fcb06a0b046 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sun, 5 Jan 2020 20:51:36 +0800 Subject: [PATCH] Modify commands to make them 1 lines. --- .drone.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.drone.yml b/.drone.yml index 556128d..0f54322 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,19 +12,12 @@ steps: - name: hugo image: cibuilds/hugo:0.62.1 commands: - - if [ "${DRONE_BRANCH}" != "master" ]; then \ - hugo -e staging -v -s \ - else \ - hugo -e production -v -s \ - fi + - if [ "${DRONE_BRANCH}" != "master" ]; then hugo -e staging -v -s; 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 + 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: