summaryrefslogtreecommitdiffstats
path: root/magefile.go
diff options
context:
space:
mode:
authorEric Hagman <emhagman@gmail.com>2020-10-23 03:03:41 -0400
committerGitHub <noreply@github.com>2020-10-23 09:03:41 +0200
commitf465c5c3079261eb7fa513e2d2793851b9c52b83 (patch)
tree9d39a3601ad2563d939e6b0e53eb24553cfb5077 /magefile.go
parent3400aff2588cbf9dd4629c05537d16b019d0fdf5 (diff)
build: Allow optional "nodeploy" tag to exclude deploy command from bin
Fixes #7826
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/magefile.go b/magefile.go
index 89b7c895d..02e49b66e 100644
--- a/magefile.go
+++ b/magefile.go
@@ -354,6 +354,7 @@ func buildFlags() []string {
func buildTags() string {
// To build the extended Hugo SCSS/SASS enabled version, build with
// HUGO_BUILD_TAGS=extended mage install etc.
+ // To build without `hugo deploy` for smaller binary, use HUGO_BUILD_TAGS=nodeploy
if envtags := os.Getenv("HUGO_BUILD_TAGS"); envtags != "" {
return envtags
}