Ver Fonte

[ts] Update build file.

Nathan Sweet há 4 anos atrás
pai
commit
46416099c4
1 ficheiros alterados com 8 adições e 6 exclusões
  1. 8 6
      spine-ts/build.sh

+ 8 - 6
spine-ts/build.sh

@@ -3,9 +3,9 @@ set -e
 
 
 if [ -z "$GITHUB_REF" ];
 if [ -z "$GITHUB_REF" ];
 then
 then
-    BRANCH=$(git symbolic-ref --short -q HEAD)
+	BRANCH=$(git symbolic-ref --short -q HEAD)
 else
 else
-    BRANCH=${GITHUB_REF#refs/heads/}
+	BRANCH=${GITHUB_REF#refs/heads/}
 fi
 fi
 
 
 echo "Building spine-ts $BRANCH artifacts"
 echo "Building spine-ts $BRANCH artifacts"
@@ -17,11 +17,13 @@ tsc -p tsconfig.threejs.json
 tsc -p tsconfig.player.json
 tsc -p tsconfig.player.json
 ls build/*.js build/*.ts | awk '{print "unexpand -t 4 ", $0, " > /tmp/e; mv /tmp/e ", $0}' | sh
 ls build/*.js build/*.ts | awk '{print "unexpand -t 4 ", $0, " > /tmp/e; mv /tmp/e ", $0}' | sh
 
 
+
+
 if ! [ -z "$TS_UPDATE_URL" ] && ! [ -z "$BRANCH" ];
 if ! [ -z "$TS_UPDATE_URL" ] && ! [ -z "$BRANCH" ];
 then
 then
-    echo "Deploying spine-ts $BRANCH artifacts"
-    zip -j spine-ts.zip build/* player/css/spine-player.css player/example/external/*
-    curl -F "[email protected]" "$TS_UPDATE_URL$BRANCH"
+	echo "Deploying spine-ts $BRANCH artifacts"
+	zip -j spine-ts.zip build/* player/css/spine-player.css player/example/external/*
+	curl -F "[email protected]" "$TS_UPDATE_URL$BRANCH"
 else
 else
-    echo "Not deploying artifacts. TS_UPDATE_URL and/or BRANCH not set."
+	echo "Not deploying artifacts. TS_UPDATE_URL and/or BRANCH not set."
 fi
 fi