This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |