#!/bin/bash -eu # This script builds a new gh-pages branch from latest master cd "$(dirname $0)/.." git fetch origin git checkout -B gh-pages origin/master git reset --hard origin/master git clean -dffx # Run npm-install to fetch qunitjs and build dist/ npm install html=' VisualEditor
VisualEditor logo
Demo
Test suite
' echo "$html" > index.html git add index.html git add -f node_modules/qunitjs dist/ git commit -m "Create gh-pages branch" git push origin -f HEAD