Simple bash deploy script

Posted:

The next piece in my blog workflow is to automatically commit new content and then push it up to gitHub where AWS can grab and deploy it. For that, I wrote a simple bash script:

#!/bin/bash  
  
cd /Users/amy/Code/amykhar.dev  
git add .  
date=$(date '+%Y-%m-%d %H:%M:%S')  
git commit -m "Deployed on $date"  
git push

I don't need a detailed commit message for content. A timestamp will do.