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