From 1933db87f1e1cfd8dd06f4fa3aa0fe276beafbfa Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Sat, 6 Oct 2018 14:01:54 +0100 Subject: [PATCH] Pull builder code before building --- bin/deploy | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/deploy b/bin/deploy index 2e6aaed..559ab62 100755 --- a/bin/deploy +++ b/bin/deploy @@ -1,8 +1,17 @@ #!/usr/bin/env sh +# Get the latest code +echo "Getting the latest code" +git pull origin master + +echo "Downloading from Morph API" bundle exec bin/download + +echo "Building site" bundle exec bin/petrify cd _site git commit -am "Update content" + +echo "Pushing static site to git" git push origin master cd -