From b7d2e3a4074f0637a78fa9d5f24f1f1663bb8c25 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 26 Jan 2023 12:13:06 +0100 Subject: [PATCH] Another netlify try --- netlify.toml | 7 ++++++- scripts/build_website.sh | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/netlify.toml b/netlify.toml index b2c901c..06f0944 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,3 +1,8 @@ [build] publish = "website_build" -command = "./scripts/build_website.sh" \ No newline at end of file +command = "./scripts/build_website.sh" + +[[plugins]] +package = "netlify-plugin-cache" + [plugins.inputs] + paths = ["deno_cache"] \ No newline at end of file diff --git a/scripts/build_website.sh b/scripts/build_website.sh index cd44c2c..87a682a 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -3,8 +3,7 @@ echo "Install Deno" curl -fsSL https://deno.land/install.sh | sh export PATH=~/.deno/bin:$PATH -export DENO_PATH=$NETLIFY_CACHE_DIR/deno -echo "NETLIFY_CACHE_DIR: $NETLIFY_CACHE_DIR" +export DENO_PATH=$PWD/deno_cache echo "DENO_PATH: $DENO_PATH" echo "Generating version number..."