mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix the publishing script to not publish multiple times per day.
This commit is contained in:
parent
e2a46b6a70
commit
188a9dcb53
@ -52,19 +52,19 @@ git config user.email "chris@ethereum.org"
|
|||||||
git checkout -B gh-pages origin/gh-pages
|
git checkout -B gh-pages origin/gh-pages
|
||||||
git clean -f -d -x
|
git clean -f -d -x
|
||||||
# We only want one release per day and we do not want to push the same commit twice.
|
# 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 ./bin/soljson-*-"$COMMIT.js" > /dev/null
|
for f in ./bin/soljson-"$VER-$DATE"-*.js ./bin/soljson-*-"$COMMIT.js"
|
||||||
then
|
do
|
||||||
true
|
[ -f "$f" ] && echo "Not publishing, we already published this version today." && exit 0
|
||||||
else
|
done
|
||||||
# This file is assumed to be the product of the build_emscripten.sh script.
|
|
||||||
cp ../soljson.js ./bin/"soljson-$VER-$DATE-$COMMIT.js"
|
# This file is assumed to be the product of the build_emscripten.sh script.
|
||||||
./update-index.sh
|
cp ../soljson.js ./bin/"soljson-$VER-$DATE-$COMMIT.js"
|
||||||
cd bin
|
./update-index.sh
|
||||||
LATEST=$(ls -r soljson-v* | head -n 1)
|
cd bin
|
||||||
cp "$LATEST" soljson-latest.js
|
LATEST=$(ls -r soljson-v* | head -n 1)
|
||||||
cp soljson-latest.js ../soljson.js
|
cp "$LATEST" soljson-latest.js
|
||||||
git add .
|
cp soljson-latest.js ../soljson.js
|
||||||
git add ../soljson.js
|
git add .
|
||||||
git commit -m "Added compiler version $LATEST"
|
git add ../soljson.js
|
||||||
git push origin gh-pages
|
git commit -m "Added compiler version $LATEST"
|
||||||
fi
|
git push origin gh-pages
|
||||||
|
Loading…
Reference in New Issue
Block a user