Skip to content

Commit

Permalink
Skip production builds (#297)
Browse files Browse the repository at this point in the history
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`).
  • Loading branch information
nkuba authored Mar 5, 2024
2 parents 846494b + a8dacd1 commit 10a62b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -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'"
# 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"

0 comments on commit 10a62b2

Please sign in to comment.