diff options
author | weru <fromweru@gmail.com> | 2021-06-10 00:16:11 +0300 |
---|---|---|
committer | weru <fromweru@gmail.com> | 2021-06-10 00:55:27 +0300 |
commit | ef1c12ee62b51ad751645419f62fc9f1c30e7053 (patch) | |
tree | f352cce8f641a3a95ce7c9c9911c79d61fba5dcf | |
parent | 8a6edc23d2ffc67be56a5d8923b4fa64c08f6f21 (diff) |
add netlify CI script
Signed-off-by: weru <fromweru@gmail.com>
-rw-r--r-- | exampleSite/netlify.toml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/exampleSite/netlify.toml b/exampleSite/netlify.toml new file mode 100644 index 0000000..696410d --- /dev/null +++ b/exampleSite/netlify.toml @@ -0,0 +1,31 @@ +[build] +publish = "public" +command = "hugo --gc --minify" + +[context.production.environment] +HUGO_VERSION = "0.83.1" +HUGO_ENV = "production" +HUGO_ENABLEGITINFO = "true" + +[context.split1] +command = "hugo --gc --minify --enableGitInfo" + +[context.split1.environment] +HUGO_VERSION = "0.83.1" +HUGO_ENV = "production" + +[context.deploy-preview] +command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" + +[context.deploy-preview.environment] +HUGO_VERSION = "0.83.1" + +[context.branch-deploy] +command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" + +[context.branch-deploy.environment] +HUGO_VERSION = "0.83.1" + +[context.next.environment] +HUGO_ENABLEGITINFO = "true" + |