From 64473a786324af8efdc792b98b73f7c5b1a1eb57 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Sat, 29 Oct 2022 16:01:20 +0200 Subject: [PATCH] Auto generate version number --- 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 29dc20a..336388e 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -6,8 +6,12 @@ npx --yes @silverbulletmd/publish -o website_build --index website echo "Now building Silver Bullet bundle" 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..." deno task build +echo "Bundling..." deno task bundle -mkdir website_build/silverbullet cp dist/silverbullet.js website_build/ cp dist_bundle/web/global.plug.json website_build/ \ No newline at end of file