refactoring build script
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
8ecc0b19dc
commit
131869f520
@ -1,17 +1,17 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
HUGOCMD="hugo"
|
HUGOCMD="hugo -v"
|
||||||
# debug alias
|
# debug alias
|
||||||
#HUGOCMD="hugo --enableGitInfo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints"
|
#HUGOCMD="hugo --enableGitInfo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints"
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
main)
|
main)
|
||||||
$HUGOCMD -v -d /drone/src/public/ --baseURL https://ndumas.com
|
$HUGOCMD -d /drone/src/public/ --baseURL https://ndumas.com
|
||||||
;;
|
;;
|
||||||
dev)
|
dev)
|
||||||
$HUGOCMD -v -d /drone/src/public/ --baseURL https://dev.ndumas.com
|
$HUGOCMD -d /drone/src/public/ --baseURL https://dev.ndumas.com
|
||||||
;;
|
;;
|
||||||
drafts)
|
drafts)
|
||||||
$HUGOCMD -v -DF -d /drone/src/public/ --baseURL https://drafts.ndumas.com
|
$HUGOCMD -DF -d /drone/src/public/ --baseURL https://drafts.ndumas.com
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue