Merge branch 'support-minify' of kazu634/blog into master
This commit is contained in:
commit
a0e9a838ec
|
@ -12,7 +12,7 @@ steps:
|
||||||
- name: hugo
|
- name: hugo
|
||||||
image: cibuilds/hugo:0.69.0
|
image: cibuilds/hugo:0.69.0
|
||||||
commands:
|
commands:
|
||||||
- sudo hugo -e production -v -s .
|
- sudo hugo -e production --minify -v -s .
|
||||||
|
|
||||||
- name: Compress-the-Assets
|
- name: Compress-the-Assets
|
||||||
image: alpine:3.9
|
image: alpine:3.9
|
||||||
|
@ -66,7 +66,7 @@ steps:
|
||||||
- name: hugo
|
- name: hugo
|
||||||
image: cibuilds/hugo:0.69.0
|
image: cibuilds/hugo:0.69.0
|
||||||
commands:
|
commands:
|
||||||
- sudo hugo -e staging -v -s .
|
- sudo hugo -e staging --minify -v -s .
|
||||||
|
|
||||||
- name: Compress-the-Assets
|
- name: Compress-the-Assets
|
||||||
image: alpine:3.9
|
image: alpine:3.9
|
||||||
|
|
|
@ -4,7 +4,7 @@ require 'find'
|
||||||
|
|
||||||
desc 'Deploy the hugo contents to the server'
|
desc 'Deploy the hugo contents to the server'
|
||||||
task :prod => [:prep] do
|
task :prod => [:prep] do
|
||||||
sh 'hugo -v'
|
sh 'hugo -v --minify'
|
||||||
|
|
||||||
sh 'find public -type f -name "*.gz" -delete'
|
sh 'find public -type f -name "*.gz" -delete'
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ require 'find'
|
||||||
|
|
||||||
desc 'Deploy the hugo contents to the server'
|
desc 'Deploy the hugo contents to the server'
|
||||||
task :stag => [:prep] do
|
task :stag => [:prep] do
|
||||||
sh 'hugo -e staging -v'
|
sh 'hugo -e staging -v --minify'
|
||||||
|
|
||||||
sh 'find public -type f -name "*.gz" -delete'
|
sh 'find public -type f -name "*.gz" -delete'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue