Add sync-blog script for automated site deployment
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# sync-blog: pull + rebuild
|
||||
set -e
|
||||
|
||||
cd ~/hugo-blog
|
||||
|
||||
echo ">>> git pull..."
|
||||
git pull
|
||||
|
||||
echo ">>> hugo build..."
|
||||
hugo --minify
|
||||
|
||||
echo ">>> done -- site updated"
|
||||
Reference in New Issue
Block a user