From b058bd64e1934783ff1a45815ab22e3768b35985 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Tue, 29 Nov 2022 08:19:01 +0100 Subject: [PATCH] Git hash version numbers --- scripts/build_demo.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build_demo.sh b/scripts/build_demo.sh index 12331e98..ed218ffc 100755 --- a/scripts/build_demo.sh +++ b/scripts/build_demo.sh @@ -4,6 +4,9 @@ echo "Install Deno" curl -fsSL https://deno.land/install.sh | sh export PATH=~/.deno/bin:$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"