Modify YAML syntax.

This commit is contained in:
Kazuhiro MUSASHI 2020-01-05 20:46:29 +08:00
parent 464f579b62
commit 6cb4e1deac
1 changed files with 8 additions and 8 deletions

View File

@ -11,19 +11,19 @@ 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
commands:
- 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
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"` \
do \
gzip -c ${TARGET} > ${TARGET}.gz \
done
trigger: