Skip to content

Commit

Permalink
Merge pull request matcornic#217 from matalo33/netlify-toml
Browse files Browse the repository at this point in the history
Set build steps in config
  • Loading branch information
matalo33 authored Dec 21, 2018
2 parents e4c95a8 + 9e21c06 commit 9476659
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 9476659

Please sign in to comment.