diff --git a/scripts/build_website.sh b/scripts/build_website.sh index 3193247..cd44c2c 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"