Skip to content

Instantly share code, notes, and snippets.

View Kavithvajen's full-sized avatar

Kavithvajen Kavithvajen

  • Dublin, Ireland
View GitHub Profile
@Kavithvajen
Kavithvajen / deploy.sh
Created July 18, 2020 11:26
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 .