From 0f519c8c42e0e711bc773273a927a72dc6d35093 Mon Sep 17 00:00:00 2001 From: Benjamin Huo Date: Thu, 28 Jul 2022 20:01:10 +0800 Subject: [PATCH] Add hugo version env for branch deploy (#174) Signed-off-by: Benjamin Huo --- netlify.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/netlify.toml b/netlify.toml index ed26e2df..cfec9d39 100644 --- a/netlify.toml +++ b/netlify.toml @@ -4,6 +4,9 @@ [context.deploy-preview.environment] HUGO_VERSION = "0.101.0" +[context.branch-deploy.environment] + HUGO_VERSION = "0.101.0" + [context.deploy-preview] command = "cd themes/docsy && git submodule update -f --init && cd ../.. && hugo --gc --minify"