added deploy script
This commit is contained in:
parent
d16ad979aa
commit
9c50f16043
|
|
@ -0,0 +1,24 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
|
||||||
|
|
||||||
|
# Build the project.
|
||||||
|
hugo -t light-hugo # if using a theme, replace by `hugo -t <yourtheme>`
|
||||||
|
|
||||||
|
# Go To Public folder
|
||||||
|
cd public
|
||||||
|
# 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
|
||||||
|
|
||||||
|
# Come Back
|
||||||
|
cd ..
|
||||||
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 810d2009c5b61c1fbd1a22a86d4aba8e57f82548
|
||||||
Loading…
Reference in New Issue