You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:2.1.1:evaluate -Dexpression=project.version|grep -Ev '(^\[|Download\w+:)' || die "unable to get version")
mvn clean install -DskipTests
mvn clean site site:stage || die "unable to generate site"
rm -rf $TMP || die "unable to clear $TMP"
git clone $REPO $TMP || die "unable to clone $TMP"
cd $TMP
git checkout gh-pages || die "unable to checkout gh-pages"
mkdir -p current || die "unable to create dir current"
mkdir -p versions/$VERSION || die "unable to create dir versions/$VERSION"
find current -type f -exec git rm {} \;
mkdir -p current || die "unable to create dir current"
mkdir -p versions/$VERSION || die "unable to create dir versions/$VERSION"
cp -r $STAGE/* current/ || die "unable to copy to current"
cp -r $STAGE/* versions/$VERSION/ || die "unable to copy to versions/$VERSION"