Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

function gh-pages-deploy () {
directory=_site
current_branch=$(git rev-parse --abbrev-ref HEAD)
deploy_branch=gh-pages
build_command() {
bundle exec jekyll build
}
if [[ "$current_branch" != "main" ]]; then
echo "\033[0;32mAborting - switch to 'main' branch\033[0m";