hugo-site/deploy.sh
Spencer Lyon fb7460a82f Revert "rebuilding site Wed Jun 25 00:43:30 EDT 2014"
This reverts commit e06a36952837d972aa3f2fd09da29fff8b55e9ba.
2014-06-25 00:46:35 -04:00

21 lines
378 B
Bash

#!/bin/bash
echo -e "\033[0;32mDeploying updates to Github...\033[0m"
# Build the project.
hugo
# Add changes to git.
git add -A
# Commit changes.
msg="rebuilding site `date`"
if [ $# -eq 1 ]
then msg="$1"
fi
git commit -m "$msg"
# Push source and build repos.
git push origin master
git subtree push --prefix=public git@github.com:spencerlyon2/hugo_gh_blog.git gh-pages