Add symlinks to solc-bin/wasm for releases.

This commit is contained in:
Daniel Kirchner 2020-02-03 12:48:45 +01:00
parent 7496598b5a
commit 0508e24385

View File

@ -81,18 +81,22 @@ else
fi
NEWFILE=./bin/"soljson-$FULLVERSION.js"
NEWFILE="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 "$NEWFILE"
cp ../soljson.js ./bin/"$NEWFILE"
# For releases, add a symlink to the wasm directory.
[ "$TRAVIS_BRANCH" = release ] && ln -sf ../bin/"$NEWFILE" ./wasm/"$NEWFILE"
# Run update script
npm run update
# Publish updates
git add "$NEWFILE"
git add ./bin/"$NEWFILE"
[ "$TRAVIS_BRANCH" = release ] && git add ./wasm/"$NEWFILE"
git commit -a -m "Added compiler version $FULLVERSION"
git push origin gh-pages