Fix build-release script to put stuff in a folder
This commit is contained in:
parent
72ceabf43f
commit
c4d1bf5a07
1 changed files with 7 additions and 2 deletions
|
@ -2,19 +2,24 @@
|
|||
|
||||
VERSION=`git describe --tags`
|
||||
|
||||
if [ ! -d ../WebApp-Releases ]; then
|
||||
echo "Making new Releases Directory"
|
||||
mkdir ../WebApp-Releases
|
||||
fi
|
||||
|
||||
echo "Building releases for $VERSION"
|
||||
|
||||
echo "Building Prod Release..."
|
||||
|
||||
ng build --prod
|
||||
|
||||
tar -czf ../LocalLoop-Web-prod-$VERSION.tar.gz dist
|
||||
tar -czf ../WebApp-Releases/LocalLoop-Web-prod-$VERSION.tar.gz dist
|
||||
|
||||
echo "Building Dev Release..."
|
||||
|
||||
ng build --dev
|
||||
|
||||
tar -cvzf ../LocalLoop-Web-dev-$VERSION.tar.gz dist
|
||||
tar -czf ../WebApp-Releases/LocalLoop-Web-dev-$VERSION.tar.gz dist
|
||||
|
||||
echo "Cleaning up build artefacts..."
|
||||
|
||||
|
|
Reference in a new issue