From 7de6e40f8214a257f680f6319ed60f75ba66a2e7 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 26 Jan 2023 12:09:24 +0100 Subject: [PATCH] Use Netlify build cache --- scripts/build_website.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build_website.sh b/scripts/build_website.sh index 31932479..cd44c2cb 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -1,12 +1,16 @@ -#!/bin/bash +#!/bin/bash -e 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" +echo "DENO_PATH: $DENO_PATH" echo "Generating version number..." echo "export const version = '$(git rev-parse HEAD)';" > version.ts + echo "Building silver bullet" deno task build echo "Cleaning website build dir"