mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
Squash stdout/stderr in gh-pages push
Previously if there was a problem communicating to GitHub or if there was an issue with the GH_TOKEN the token would be displayed and stored in Travis. This update hides the token but still indicates the result for Travis.
This commit is contained in:
parent
bade22ff49
commit
dabfd05236
@ -23,7 +23,9 @@ if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
|
||||
cp -Rf ../javadoc ./javadoc
|
||||
git add -f .
|
||||
git commit -m "Lastest javadoc on successful travis build $TRAVIS_BUILD_NUMBER auto-pushed to gh-pages"
|
||||
git push -fq origin gh-pages > /dev/null
|
||||
|
||||
echo "Done magic with auto publishment to gh-pages."
|
||||
if ! git push -fq origin gh-pages &> /dev/null; then
|
||||
echo "Error pushing gh-pages to origin. Bad GH_TOKEN? GitHub down?"
|
||||
else
|
||||
echo "Done magic with auto publishment to gh-pages."
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user