Browse Source

tech(build): prepare for tag builds

bergquist 9 years ago
parent
commit
513fcdeeb8
1 changed files with 8 additions and 8 deletions
  1. 8 8
      scripts/build/build.sh

+ 8 - 8
scripts/build/build.sh

@@ -24,11 +24,11 @@ fi
 echo "current dir: $(pwd)"
 echo "current dir: $(pwd)"
 
 
 if [ "$CIRCLE_TAG" != "" ]; then
 if [ "$CIRCLE_TAG" != "" ]; then
-  echo "Building incremental build for master"
-  go run build.go build
-else
-  echo "Building a release"
+  echo "Building a release from tag $CIRCLE_TAG"
   go run build.go -includeBuildNumber=false build
   go run build.go -includeBuildNumber=false build
+else
+  echo "Building incremental build for $CIRCLE_BRANCH"
+  go run build.go build
 fi
 fi
 
 
 yarn install --pure-lockfile
 yarn install --pure-lockfile
@@ -41,11 +41,11 @@ gem install fpm -v 1.4
 echo "current dir: $(pwd)"
 echo "current dir: $(pwd)"
 
 
 if [ "$CIRCLE_TAG" != "" ]; then
 if [ "$CIRCLE_TAG" != "" ]; then
-  echo "Building incremental build for master"
-  go run build.go package latest
-else
-  echo "Building a release"
+  echo "Packaging a release from tag $CIRCLE_TAG"
   go run build.go -includeBuildNumber=false package latest
   go run build.go -includeBuildNumber=false package latest
+else
+  echo "Packaging incremental build for $CIRCLE_BRANCH"
+  go run build.go package latest
 fi
 fi
 
 
 cp dist/* /tmp/dist/
 cp dist/* /tmp/dist/