#!/usr/bin/env sh

# CI deployment script

export SSH_DIR=$PWD/.travis
export SITE_DIR=$PWD/dita-ot.github.io

# install SSH key
eval "$(ssh-agent -s)"
chmod 600 $PWD/.travis/ditaotbot_rsa
ssh-add $PWD/.travis/ditaotbot_rsa

cd $SITE_DIR

# commit site
git config user.email "ditaotbot@gmail.com"
git config user.name "DITA-OT Bot"
git commit -a -m "Deploy dita-ot/docs@${TRAVIS_COMMIT:0:7} to dev"
# push
git remote set-url origin git@github.com:dita-ot/dita-ot.github.io.git
git push -v origin develop

#!/usr/bin/env sh

# CI deployment script

export SSH_DIR=$PWD/.travis
export SITE_DIR=$PWD/dita-ot.github.io

# install SSH key
eval "$(ssh-agent -s)"
chmod 600 $PWD/.travis/ditaotbot_rsa
ssh-add $PWD/.travis/ditaotbot_rsa

cd $SITE_DIR

# commit site
git config user.email "ditaotbot@gmail.com"
git config user.name "DITA-OT Bot"
git commit -a -m "Deploy dita-ot/docs@${TRAVIS_COMMIT:0:7} to 'dev' docs"
# push
git remote set-url origin git@github.com:dita-ot/dita-ot.github.io.git
git push -v origin develop

Tweak commit message for site repo
Tweak commit message for site repo
