netlify: Only trigger preview when there are changes in docs.

Signed-off-by: Jintao Zhang <zhangjintao9020@gmail.com>
This commit is contained in:
Jintao Zhang 2023-06-28 01:44:57 +08:00
parent 8b24fc98d2
commit 0f7961cf7f

View file

@ -2,6 +2,7 @@
[build] [build]
publish = "site" publish = "site"
command = "make build-docs" command = "make build-docs"
ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF ./docs"
# available here https://github.com/netlify/build-image/blob/focal/included_software.md#languages # available here https://github.com/netlify/build-image/blob/focal/included_software.md#languages
environment = { PYTHON_VERSION = "3.8" } environment = { PYTHON_VERSION = "3.8" }