From f465c5c3079261eb7fa513e2d2793851b9c52b83 Mon Sep 17 00:00:00 2001 From: Eric Hagman Date: Fri, 23 Oct 2020 03:03:41 -0400 Subject: build: Allow optional "nodeploy" tag to exclude deploy command from bin Fixes #7826 --- magefile.go | 1 + 1 file changed, 1 insertion(+) (limited to 'magefile.go') 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 } -- cgit v1.2.3