From d66765e46382820b53a58b89ce619af638abb2bb Mon Sep 17 00:00:00 2001 From: Matthew Taylor Date: Fri, 21 Dec 2018 00:31:13 +0000 Subject: [PATCH] Set build steps in config --- netlify.toml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 netlify.toml diff --git a/netlify.toml b/netlify.toml new file mode 100644 index 0000000000..bf02f0d794 --- /dev/null +++ b/netlify.toml @@ -0,0 +1,24 @@ +[build] + publish = "exampleSite/public" + command = "hugo -s exampleSite" + +[build.environment] + HUGO_THEME = "repo" + HUGO_THEMESDIR = "/opt/build" + HUGO_VERSION = "0.50" + +[context.production.environment] + HUGO_BASEURL = "https://learn.netlify.com/" + +[context.deploy-preview] + command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL" + +[context.deploy-preview.environment] + HUGO_ENABLEGITINFO = "true" + +[context.branch-deplpy] + command = "hugo -s exampleSite -b $DEPLOY_PRIME_URL" + +[context.branch-deploy.environment] + HUGO_ENABLEGITINFO = "true" +