aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-09-08 23:17:28 +0800
committerchriseth <c@ethdev.com>2016-09-09 16:32:49 +0800
commit8ca31cebecde94e39e0174d1467d7c6664ec9fdf (patch)
tree1df50750c17af03c969a7a94f0aa9ba0c7e457ef
parentfb86d90e080b0fbbcf7b7f328352f9794802c8c4 (diff)
downloaddexon-solidity-8ca31cebecde94e39e0174d1467d7c6664ec9fdf.tar.gz
dexon-solidity-8ca31cebecde94e39e0174d1467d7c6664ec9fdf.tar.zst
dexon-solidity-8ca31cebecde94e39e0174d1467d7c6664ec9fdf.zip
Store emscripten binaries usig new naming scheme.
-rwxr-xr-xscripts/travis-emscripten/publish_binary.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh
index d202764a..e89e3ce3 100755
--- a/scripts/travis-emscripten/publish_binary.sh
+++ b/scripts/travis-emscripten/publish_binary.sh
@@ -34,7 +34,7 @@ VER=$(cat CMakeLists.txt | grep 'set(PROJECT_VERSION' | sed -e 's/.*set(PROJECT_
test -n "$VER"
VER="v$VER"
COMMIT=$(git rev-parse --short HEAD)
-DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%F)
+DATE=$(date --date="$(git log -1 --date=iso --format=%ad HEAD)" --utc +%Y.%m.%d)
ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key"
ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv"
@@ -52,14 +52,14 @@ git config user.email "chris@ethereum.org"
git checkout -B gh-pages origin/gh-pages
git clean -f -d -x
# We only want one release per day and we do not want to push the same commit twice.
-if ls ./bin/soljson-"$VER-$DATE"-*.js || ls ./bin/soljson-*-"$COMMIT.js"
+if ls ./bin/soljson-"$VER-nightly.$DATE"-*.js || ls ./bin/soljson-*"commit.$COMMIT.js"
then
echo "Not publishing, we already published this version today."
exit 0
fi
# This file is assumed to be the product of the build_emscripten.sh script.
-cp ../soljson.js ./bin/"soljson-$VER-$DATE-$COMMIT.js"
+cp ../soljson.js ./bin/"soljson-$VER-nightly.$DATE+commit.$COMMIT.js"
node ./update
cd bin
LATEST=$(ls -r soljson-v* | head -n 1)