Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 317 Bytes
#!/bin/bash
# Usage:
# ./deploy.sh 'Commit message'
echo -e "Deploying updates to GitHub..."
# Blow away docs folder
rm -R docs
# Build the project.
hugo
# Add content changes to git.
git add -A
# Commit content changes.
echo "Commit message: $1"
git commit -m "$1"
# Push content source
git push origin master
You can’t perform that action at this time.