mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 02:16:18 +00:00
Added useful error message in case you don't have the gh-pages branch locally.
This commit is contained in:
1 parent
17d02d3cca
commit
d7e5b5ec50
1 file changed
+9
-2
+9
-2
@@ -16,10 +16,17 @@ mkdir -p build/temp || exit
|
||||
cd build/temp || exit
|
||||
git clone -l -n ../.. websitegit || exit
|
||||
cd websitegit || exit
|
||||
git branch gh-pages origin/gh-pages || exit
|
||||
BRANCHOK="foo"
|
||||
git branch gh-pages origin/gh-pages || BRANCHOK="bar"
|
||||
if [ $BRANCHOK == "bar" ]; then
|
||||
echo If you get error fatal: Not a valid object name: origin/gh-pages.
|
||||
echo then run: git branch gh-pages origin/gh-pages
|
||||
echo first before running this script
|
||||
exit
|
||||
fi
|
||||
git checkout gh-pages || exit
|
||||
rm -r * || exit
|
||||
unzip ../../../dist/website.zip || exit
|
||||
tar xf ../../../dist/website.tar || exit
|
||||
git add . || exit
|
||||
git commit -a -m website || exit
|
||||
git push origin gh-pages || exit
|
||||
|
||||
Reference in new issue
Block a user