refactoring build script
continuous-integration/drone/push Build is passing Details

drafts
Nick Dumas 2 months ago
parent 8ecc0b19dc
commit 131869f520

@ -1,17 +1,17 @@
#! /bin/bash
HUGOCMD="hugo"
HUGOCMD="hugo -v"
# debug alias
#HUGOCMD="hugo --enableGitInfo -v --debug --logLevel=debug --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetrics --templateMetricsHints"
case $1 in
main)
$HUGOCMD -v -d /drone/src/public/ --baseURL https://ndumas.com
$HUGOCMD -d /drone/src/public/ --baseURL https://ndumas.com
;;
dev)
$HUGOCMD -v -d /drone/src/public/ --baseURL https://dev.ndumas.com
$HUGOCMD -d /drone/src/public/ --baseURL https://dev.ndumas.com
;;
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

Loading…
Cancel
Save