mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Also publish from release branch.
This commit is contained in:
parent
82ba5c9615
commit
07538346bd
@ -186,7 +186,9 @@ deploy:
|
|||||||
script: test $TRAVIS_EMSCRIPTEN != On || scripts/release_emscripten.sh
|
script: test $TRAVIS_EMSCRIPTEN != On || scripts/release_emscripten.sh
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
on:
|
||||||
branch: develop
|
branch:
|
||||||
|
- develop
|
||||||
|
- release
|
||||||
|
|
||||||
# This is the deploy target for the native build (Linux and macOS)
|
# This is the deploy target for the native build (Linux and macOS)
|
||||||
# which generates ZIPs per commit. We are in agreement that
|
# which generates ZIPs per commit. We are in agreement that
|
||||||
|
@ -54,21 +54,37 @@ git config user.name "travis"
|
|||||||
git config user.email "chris@ethereum.org"
|
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
|
||||||
|
|
||||||
|
|
||||||
|
FULLVERSION=INVALID
|
||||||
|
if [ "$TRAVIS_BRANCH" = release ]
|
||||||
|
then
|
||||||
|
# We only want one file with this version
|
||||||
|
if ls ./bin/soljson-"$VER+"*.js
|
||||||
|
then
|
||||||
|
echo "Not publishing, we already published this version."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
FULLVERSION="$VER+commit.$COMMIT"
|
||||||
|
elif [ "$TRAVIS_BRANCH" = develop ]
|
||||||
# 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-nightly.$DATE"*.js || ls ./bin/soljson-*"commit.$COMMIT.js"
|
if ls ./bin/soljson-"$VER-nightly.$DATE"*.js || ls ./bin/soljson-*"commit.$COMMIT.js"
|
||||||
then
|
then
|
||||||
echo "Not publishing, we already published this version today."
|
echo "Not publishing, we already published this version today."
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
FULLVERSION="$VER-nightly.$DATE+commit.$COMMIT"
|
||||||
|
else
|
||||||
|
echo "Not publishing, wrong branch."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
# 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-$VER-nightly.$DATE+commit.$COMMIT.js"
|
cp ../soljson.js ./bin/"soljson-$FULLVERSION.js"
|
||||||
node ./update
|
node ./update
|
||||||
cd bin
|
cd bin
|
||||||
LATEST=$(ls -r soljson-v* | head -n 1)
|
|
||||||
cp "$LATEST" soljson-latest.js
|
|
||||||
cp soljson-latest.js ../soljson.js
|
|
||||||
git add .
|
git add .
|
||||||
git add ../soljson.js
|
git add ../soljson.js
|
||||||
git commit -m "Added compiler version $LATEST"
|
git commit -m "Added compiler version $VER"
|
||||||
git push origin gh-pages
|
git push origin gh-pages
|
||||||
|
Loading…
Reference in New Issue
Block a user