mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-30 13:42:35 +08:00
Don't generate docs if we can't determine a Git branch
This commit is contained in:
@@ -20,6 +20,8 @@ rake server:stop
|
||||
# Build & Publish Docs
|
||||
if [ -n $DOCS_DESTINATION ]; then
|
||||
VERSION=`echo $GIT_BRANCH|sed -e 's/origin\///'`
|
||||
echo "Building documentation for branch $VERSION and publishing to '$DOCS_DESTINATION'"
|
||||
rake docs:publish[$VERSION,$DOCS_DESTINATION]
|
||||
if [ -n $VERSION ]; then
|
||||
echo "Building documentation for branch $VERSION and publishing to '$DOCS_DESTINATION'"
|
||||
rake docs:publish[$VERSION,$DOCS_DESTINATION]
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user