diff --git a/netlify.toml b/netlify.toml index bc1376d3..f26637b6 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,4 +3,4 @@ publish = "build/" command = "yarn build" # build only if there are changes within daggosaurus or docs directories. - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../../docs/" + ignore = "[ $BRANCH != main ] && git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../../docs/"