Modify the YAML syntax.

This commit is contained in:
Kazuhiro MUSASHI 2020-01-05 20:36:49 +08:00
parent 475a04c1d1
commit 464f579b62
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ steps:
- name: hugo
image: cibuilds/hugo:0.62.1
commands: |
commands: >
if [ "${DRONE_BRANCH}" != "master" ]; then
hugo -e staging -v -s
else
@ -20,7 +20,7 @@ steps:
- name: Compress-the-Assets
image: cibuilds/hugo:0.62.1
commands: |
commands: >
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`
do
gzip -c ${TARGET} > ${TARGET}.gz