From be09a9c04cc65c16803e6eadcaebbdcafaef94c5 Mon Sep 17 00:00:00 2001 From: Michalina Date: Mon, 4 Mar 2024 15:37:41 +0100 Subject: [PATCH] Skip production builds We're adding the `ignore` setting for the `production` context - it should skip automatic deployment of the dapp after the changes on the production branch (`main`). --- netlify.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/netlify.toml b/netlify.toml index c21afb386..59e82dbf2 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,2 +1,7 @@ [build] - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ':(exclude).github/' ':(exclude).vscode/' ':(exclude)core/' ':(exclude).git-blame-ignore-revs' ':(exclude).gitignore' ':(exclude).npmrc' ':(exclude).nvmrc' ':(exclude).pre-commit-config.yaml' ':(exclude).prettierignore' ':(exclude).prettierrc.js' ':(exclude).syncpackrc' ':(exclude)LICENSE' ':(exclude)README.md'" \ No newline at end of file + # Don't run builds after the changes touching only the listed paths. + ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ':(exclude).github/' ':(exclude).vscode/' ':(exclude)core/' ':(exclude).git-blame-ignore-revs' ':(exclude).gitignore' ':(exclude).npmrc' ':(exclude).nvmrc' ':(exclude).pre-commit-config.yaml' ':(exclude).prettierignore' ':(exclude).prettierrc.js' ':(exclude).syncpackrc' ':(exclude)LICENSE' ':(exclude)README.md'" + +[context.production] + # Do not run builds for the production context. + ignore = "exit 0"