From 55130106a85b1e84c1f4a4dca6cfe3eddd1abe5f Mon Sep 17 00:00:00 2001 From: AnonymousRandomPerson Date: Tue, 21 May 2024 18:36:10 -0400 Subject: [PATCH] Fix deployment after build cache expires --- netlify.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netlify.toml b/netlify.toml index d90c58bb..219ddfd4 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,11 +1,11 @@ [build] publish = "dist/" command = "FILE=tools/ci/build-prod.sh; rm -rf dist/; if [ -f $FILE ]; then bash $FILE; else cp -r web/ dist/; fi" - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF web/ tools/ .parcelrc netlify.toml package-lock.json package.json postcss.config.js" + ignore = "if ["${COMMIT_REF}" == "${CACHED_COMMIT_REF}"]; then false; else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF web/ tools/ .parcelrc netlify.toml package-lock.json package.json postcss.config.js; fi" [build.environment] PYTHON_VERSION = "3.8" [context.deploy-preview] command = "FILE=tools/ci/build-preview.sh; rm -rf dist/; if [ -f $FILE ]; then bash $FILE; else cp -r web/ dist/; fi" - ignore = "git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF data/patches/ web/ tools/ .parcelrc netlify.toml package-lock.json package.json postcss.config.js" + ignore = "if ["${COMMIT_REF}" == "${CACHED_COMMIT_REF}"]; then false; else git diff --quiet $CACHED_COMMIT_REF $COMMIT_REF data/patches/ web/ tools/ .parcelrc netlify.toml package-lock.json package.json postcss.config.js; fi"