summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-12-07 19:07:30 (GMT)
committerGitHub <noreply@github.com>2022-12-07 19:07:30 (GMT)
commitd92407ed497e3fc5acacb0294ab6095013e600f4 (patch)
treece8f10260d7545a95500180bea4c67ab10227ef0
parentf3e97c90ed6f82fce67b0e8757eec54908ba49ce (diff)
downloadcpython-d92407ed497e3fc5acacb0294ab6095013e600f4.zip
cpython-d92407ed497e3fc5acacb0294ab6095013e600f4.tar.gz
cpython-d92407ed497e3fc5acacb0294ab6095013e600f4.tar.bz2
gh-100072: only trigger netlify builds for doc changes (#100074)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
-rw-r--r--netlify.toml5
1 files changed, 4 insertions, 1 deletions
diff --git a/netlify.toml b/netlify.toml
index 52675b3..f5790fc 100644
--- a/netlify.toml
+++ b/netlify.toml
@@ -2,7 +2,10 @@
base = "Doc/"
command = "make html"
publish = "build/html"
+ # Do not trigger netlify builds if docs were not changed.
+ # Changed files should be in sync with `.github/workflows/doc.yml`
+ ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF . ../netlify.toml"
[build.environment]
PYTHON_VERSION = "3.8"
- IS_DEPLOYMENT_PREVIEW = "true" \ No newline at end of file
+ IS_DEPLOYMENT_PREVIEW = "true"