Skip to content
Browse files

Added a deploy script to the policystat dev blog

  • Loading branch information...
1 parent 06e9cc6 commit 69906a979cff0a2e2de675afce0cbaa0aa8ad8e9 @winhamwr committed
Showing with 24 additions and 0 deletions.
  1. +24 −0 policystat-product-2012/deploy.sh
View
24 policystat-product-2012/deploy.sh
@@ -0,0 +1,24 @@
+#! /usr/bin/env bash
+set -e;
+BLOG_PRESO_DIR=~/policystat/workspace/devblog/source/slides;
+PRESO_NAME=state-of-the-product-2012;
+
+# Generate the static version
+showoff static;
+
+# Copy the static version to the blog repository
+cd static;
+mkdir -p $BLOG_PRESO_DIR/$PRESO_NAME;
+cp -r * $BLOG_PRESO_DIR/$PRESO_NAME/;
+# Delete the static directory
+cd ..;
+rm -r static;
+
+# Get the PDF version and put it in the blog respository
+curl http://localhost:9090/pdf -o $BLOG_PRESO_DIR/$PRESO_NAME/$PRESO_NAME.pdf;
+
+# Commit the update presentation to the blog respository
+cd $BLOG_PRESO_DIR;
+git add .;
+git commit -m "Pulled in latest vesion of $PRESO_NAME slides";
+git push;

0 comments on commit 69906a9

Please sign in to comment.
Something went wrong with that request. Please try again.