diff options
author | Eric Hagman <[email protected]> | 2020-10-23 03:03:41 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-10-23 09:03:41 +0200 |
commit | f465c5c3079261eb7fa513e2d2793851b9c52b83 (patch) | |
tree | 9d39a3601ad2563d939e6b0e53eb24553cfb5077 /magefile.go | |
parent | 3400aff2588cbf9dd4629c05537d16b019d0fdf5 (diff) | |
download | hugo-f465c5c3079261eb7fa513e2d2793851b9c52b83.tar.gz hugo-f465c5c3079261eb7fa513e2d2793851b9c52b83.zip |
build: Allow optional "nodeploy" tag to exclude deploy command from bin
Fixes #7826
Diffstat (limited to 'magefile.go')
-rw-r--r-- | magefile.go | 1 |
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 } |