Simplify publish script

This commit is contained in:
Alex Beregszaszi 2016-10-14 19:35:42 +01:00
parent bb556e1193
commit 8fe36599a2

View File

@ -81,16 +81,18 @@ else
fi fi
NEWFILE=./bin/"soljson-$FULLVERSION.js"
# Prepare for update script # Prepare for update script
npm install npm install
# This file is assumed to be the product of the build_emscripten.sh script. # This file is assumed to be the product of the build_emscripten.sh script.
cp ../soljson.js ./bin/"soljson-$FULLVERSION.js" cp ../soljson.js "$NEWFILE"
# Run update script # Run update script
npm run update npm run update
# Publish updates # Publish updates
git add ./bin/"soljson-$FULLVERSION.js" git add "$NEWFILE"
git commit -a -m "Added compiler version $FULLVERSION" git commit -a -m "Added compiler version $FULLVERSION"
git push origin gh-pages git push origin gh-pages