2020-01-20 13:03:01 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
source ~/.bashrc
|
2020-12-02 16:44:21 +01:00
|
|
|
|
2020-01-20 13:03:01 +01:00
|
|
|
set -ex
|
|
|
|
|
2020-07-14 20:44:50 +03:00
|
|
|
if [ -z "${TAG}" ]; then
|
2020-12-02 16:44:21 +01:00
|
|
|
export TAG=$(git log -n 1 --pretty=format:%H -- ./);
|
2020-07-14 20:44:50 +03:00
|
|
|
fi
|
2020-06-02 16:14:23 +02:00
|
|
|
|
2020-07-03 15:41:00 +02:00
|
|
|
yarn install
|
2020-02-25 16:18:55 +01:00
|
|
|
|
2020-03-30 10:46:15 +02:00
|
|
|
export NODE_ENV=production;
|
|
|
|
|
2020-04-18 20:34:34 +02:00
|
|
|
# Clean the output directory
|
|
|
|
npx gulp clean || exit 1;
|
2020-01-20 13:03:01 +01:00
|
|
|
|
2020-12-02 17:48:47 +01:00
|
|
|
npx shadow-cljs release main --config-merge "{:release-version \"${TAG}\"}" $SHADOWCLJS_EXTRA_PARAMS
|
2020-04-18 20:34:34 +02:00
|
|
|
npx gulp build || exit 1;
|
|
|
|
npx gulp dist:clean || exit 1;
|
|
|
|
npx gulp dist:copy || exit 1;
|