diff options
Diffstat (limited to 'scripts/travis-emscripten/publish_binary.sh')
-rwxr-xr-x | scripts/travis-emscripten/publish_binary.sh | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/scripts/travis-emscripten/publish_binary.sh b/scripts/travis-emscripten/publish_binary.sh index 236d976a..7bf6f369 100755 --- a/scripts/travis-emscripten/publish_binary.sh +++ b/scripts/travis-emscripten/publish_binary.sh @@ -81,9 +81,18 @@ else fi +NEWFILE=./bin/"soljson-$FULLVERSION.js" + +# Prepare for update script +npm install + # This file is assumed to be the product of the build_emscripten.sh script. -cp ../soljson.js ./bin/"soljson-$FULLVERSION.js" -node ./update -git add ./bin/"soljson-$FULLVERSION.js" +cp ../soljson.js "$NEWFILE" + +# Run update script +npm run update + +# Publish updates +git add "$NEWFILE" git commit -a -m "Added compiler version $FULLVERSION" git push origin gh-pages |