Add deploy scripts

This commit is contained in:
Kacper Donat 2020-06-07 18:21:08 +02:00
parent 108bafaaee
commit 65169e49e1
2 changed files with 12 additions and 0 deletions

6
.build/build.sh Normal file
View File

@ -0,0 +1,6 @@
BUILD_PATH=$1
cd $BUILD_PATH || exit 1
yarn install
yarn build

6
.build/deploy.sh Normal file
View File

@ -0,0 +1,6 @@
BUILD_PATH=$1
DEPLOY_PATH=$2
# copy all dist files to deploy path
rsync $BUILD_PATH/dist $DEPLOY_PATH