Skip to content

Commit d92407e

Browse files
sobolevnhugovk
andauthored
gh-100072: only trigger netlify builds for doc changes (#100074)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent f3e97c9 commit d92407e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

netlify.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
base = "Doc/"
33
command = "make html"
44
publish = "build/html"
5+
# Do not trigger netlify builds if docs were not changed.
6+
# Changed files should be in sync with `.github/workflows/doc.yml`
7+
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../netlify.toml"
58

69
[build.environment]
710
PYTHON_VERSION = "3.8"
8-
IS_DEPLOYMENT_PREVIEW = "true"
11+
IS_DEPLOYMENT_PREVIEW = "true"

0 commit comments

Comments
 (0)