Permalink
Browse files

Add deploy script.

  • Loading branch information...
1 parent 8c6247a commit 0fab9a2495c21d20f077ba19b79121f12c1ed6cd @JakeWharton committed Apr 25, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 deploy.sh
View
@@ -0,0 +1,15 @@
+#!/bin/bash
+#
+# This script will deploy the assembled zip of the application and its signed
+# XML file to the remote repository.
+
+if [ ! -f target/*.zip ]; then
+ echo "ERROR: .zip missing."
+ exit 1
+elif [ ! -f target/*.zip.xml ]; then
+ echo "ERROR: .zip.xml missing."
+ exit 1
+fi
+
+scp target/*zip* jakewharton_repository@r.jakewharton.com:/home/jakewharton_repository/r.jakewharton.com/staging/
+ssh jakewharton_repository@r.jakewharton.com "/usr/bin/env python /home/jakewharton_repository/staging.py"

0 comments on commit 0fab9a2

Please sign in to comment.