Auto generate version number
This commit is contained in:
parent
0db46c41b7
commit
64473a7863
@ -6,8 +6,12 @@ npx --yes @silverbulletmd/publish -o website_build --index website
|
|||||||
echo "Now building Silver Bullet bundle"
|
echo "Now building Silver Bullet bundle"
|
||||||
curl -fsSL https://deno.land/install.sh | sh
|
curl -fsSL https://deno.land/install.sh | sh
|
||||||
export PATH=~/.deno/bin:$PATH
|
export PATH=~/.deno/bin:$PATH
|
||||||
|
|
||||||
|
echo "Generating version number..."
|
||||||
|
echo "export const version = '$(git rev-parse HEAD)';" > version.ts
|
||||||
|
echo "Building..."
|
||||||
deno task build
|
deno task build
|
||||||
|
echo "Bundling..."
|
||||||
deno task bundle
|
deno task bundle
|
||||||
mkdir website_build/silverbullet
|
|
||||||
cp dist/silverbullet.js website_build/
|
cp dist/silverbullet.js website_build/
|
||||||
cp dist_bundle/web/global.plug.json website_build/
|
cp dist_bundle/web/global.plug.json website_build/
|
Loading…
Reference in New Issue
Block a user