ENH: added deploy.sh script
This commit is contained in:
parent
92acbd9458
commit
1e536495af
20
deploy.sh
Normal file
20
deploy.sh
Normal file
@ -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 git@github.com:spencerlyon2/hugo_gh_blog.git gh-pages
|
@ -1,4 +0,0 @@
|
||||
hugo_gh_blog
|
||||
============
|
||||
|
||||
Template repo for a blog built with Hugo deployed on github-pages
|
Loading…
x
Reference in New Issue
Block a user