Commit 0da8e326 authored by Lukas Riedel's avatar Lukas Riedel

Remove deprecated '.deploy_docs' script

parent f4582f42
#!/bin/sh
LOCAL=$CI_BUILD_REF
git checkout $CI_BUILD_REF_NAME -q
REMOTE=$(git rev-parse $CI_BUILD_REF_NAME@{upstream})
git checkout $LOCAL -q
if [ "$LOCAL" = "$REMOTE" ]; then
echo "Deploying documentation to dorie-docs.bitballoon.com"
echo "{\"access_token\":\"$CI_BITBALLOON_TOKEN\",\"site_id\":\"$CI_BITBALLOON_ID\"}" > .bitballoon
if [[ -z build-cmake/doc/html/index.html ]]; then
echo "ERROR: no index.html in doc folder"
exit 1
fi
if ! command -v gem >/dev/null 2>&1; then
apt-get install ruby-dev -y
fi
if ! command -v bitballoon >/dev/null 2>&1; then
gem install bitballoon
fi
bitballoon deploy build-cmake/doc/html
else
echo "Commit $LOCAL is not the most recent commit on branch $CI_BUILD_REF_NAME ($REMOTE) - skipping deployment"
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment