Modify the YAML syntax.
This commit is contained in:
parent
475a04c1d1
commit
464f579b62
|
@ -11,7 +11,7 @@ steps:
|
||||||
|
|
||||||
- name: hugo
|
- name: hugo
|
||||||
image: cibuilds/hugo:0.62.1
|
image: cibuilds/hugo:0.62.1
|
||||||
commands: |
|
commands: >
|
||||||
if [ "${DRONE_BRANCH}" != "master" ]; then
|
if [ "${DRONE_BRANCH}" != "master" ]; then
|
||||||
hugo -e staging -v -s
|
hugo -e staging -v -s
|
||||||
else
|
else
|
||||||
|
@ -20,7 +20,7 @@ steps:
|
||||||
|
|
||||||
- name: Compress-the-Assets
|
- name: Compress-the-Assets
|
||||||
image: cibuilds/hugo:0.62.1
|
image: cibuilds/hugo:0.62.1
|
||||||
commands: |
|
commands: >
|
||||||
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`
|
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`
|
||||||
do
|
do
|
||||||
gzip -c ${TARGET} > ${TARGET}.gz
|
gzip -c ${TARGET} > ${TARGET}.gz
|
||||||
|
|
Loading…
Reference in New Issue