Skip to content

Instantly share code, notes, and snippets.

@kiranchavala
kiranchavala / deploy.sh
Created August 14, 2020 07:53 — forked from Kavithvajen/deploy.sh
Z Shell (zsh) script to manage a Hugo site hosted on GitHub Pages. YouTube Link: https://youtu.be/5TrMF_aFa5E
#!/bin/zsh
vared -p "Enter commit message: " -c message
printf "\e[33m\nBuilding project...\e[39m\n"
hugo -d ../YOUR_GITHUB_USERNAME.github.io
printf "\\e[33m\nPushing to YOUR_GITHUB_USERNAME.github.io repository...\e[39m\n\n"
cd ../YOUR_GITHUB_USERNAME.github.io
git add .