#!/bin/bash | |
WORKDIR=/tmp/incubator-ariatosca-site | |
rm -rf $WORKDIR | |
mkdir -p $WORKDIR | |
bundle exec jekyll build --destination $WORKDIR $WORKDIR | |
git checkout asf-site | |
git clean -f -d | |
git pull origin asf-site | |
rm -rf * | |
cp -a $WORKDIR/* . | |
git add . | |
git commit -m "Automatic Site Publish by Buildbot" | |
git push origin asf-site |