Permalink
Browse files

Add uploading script for CI

  • Loading branch information...
1 parent 4507dff commit 25d283652516518e5b7a4b2aa7d7024be449cd33 @dakrone dakrone committed Mar 7, 2012
Showing with 18 additions and 0 deletions.
  1. +18 −0 upload.zsh
View
@@ -0,0 +1,18 @@
+#!/usr/bin/env zsh
+
+# Can't store it in /tmp because safe deletes everything in /tmp for
+# every run
+if [ -f ~/gh-upload-1.0-standalone.jar ]; then
+ cp ~/gh-upload-1.0-standalone.jar .
+fi
+
+if [ ! -f gh-upload-1.0-standalone.jar ]; then
+ wget https://github.com/downloads/dakrone/gh-upload/gh-upload-1.0-standalone.jar
+ cp gh-upload-1.0-standalone.jar ~/
+fi
+
+FILE=$(ls target/releases/*.zip)
+
+echo "Uploading $FILE to $GHREPO..."
+java -jar gh-upload-1.0-standalone.jar $FILE
+

0 comments on commit 25d2836

Please sign in to comment.