Skip to content

Commit

Permalink
ENH: added deploy.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon committed Mar 29, 2014
1 parent 92acbd9 commit 1e53649
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
20 changes: 20 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/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 [email protected]:spencerlyon2/hugo_gh_blog.git gh-pages
4 changes: 0 additions & 4 deletions public/README.md

This file was deleted.

0 comments on commit 1e53649

Please sign in to comment.