Skip to content
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.

Commit

Permalink
Fix Github and Shippable release pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
rogierslag committed May 24, 2016
1 parent a6aa533 commit 10d1d18
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
set -e

export BUILD_DATE=`date` && \
export DATA=`curl -POST -u inventid-deploy:$GITHUB_PASS https://api.github.com/repos/inventid/rfid-reader2keyboard/releases -d "{\"tag_name\": \"v${BUILD_NUMBER}\",\"name\":\"Build of ${BUILD_DATE} (${COMMIT})\"}" -H "Content-Type: application/json" -H "Accept: application/json"` && \
export JSON="{\"tag_name\": \"v${BUILD_NUMBER}\",\"name\":\"Build ${BUILD_NUMBER}\",\"body\":\"Build ${BUILD_NUMBER} of ${BUILD_DATE} (${COMMIT})\"}" && \
echo $JSON && \
export DATA=`curl -s -POST -u inventid-deploy:$GITHUB_PASS https://api.github.com/repos/inventid/rfid-reader2keyboard/releases -d "$JSON" -H "Content-Type: application/json" -H "Accept: application/json"` && \
echo $DATA && \
export RELEASE_ID=`echo $DATA | jq '.id'` && \
export UPLOAD_URL=`echo $DATA | jq '.upload_url' | sed s/\{\?name,label\}/\?name=rfid-reader2keyboard.jar/g | sed s/\"//g` && \
echo $RELEASE_ID && \
curl -POST -u inventid-deploy:$GITHUB_PASS $UPLOAD_URL -H "Content-Type: application/java-archive" --data-binary @target/rfid-reader2keyboard-1.0-SNAPSHOT-jar-with-dependencies.jar
curl -s -POST -u inventid-deploy:$GITHUB_PASS $UPLOAD_URL -H "Content-Type: application/java-archive" --data-binary @target/rfid-reader2keyboard-1.0-SNAPSHOT-jar-with-dependencies.jar

2 changes: 1 addition & 1 deletion shippable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jdk:
cache: true

env:
secure: P0r8foxh7ikUS6rid6ivDg3N8xNAyDD8hfpdt7VoJG41z3vw9LSQpxdAiJkt2QdH4V/VBb0Wh4sbnL8z8Lub6bpmuLnTP4GwGh8/DXRLWOV1yRsiQ9AN9G2qczrlaPLznHRrZrNazACrqYoCP891lMFQYWrIjUFyIRdVUKm0q2S2v2lcDuo6pHkYquaYz+8NdNCkOuyPmep/Vy8VS3smlZ+mC8QZHBw0wY3GdmZyqxp2oC4sSY/frQi6sPuYTIrLUlI4i4guHo//xPvxGDPrYwPd2Hw0BIjzIzBkVguUO2rUZq8MAVROsD3sPJq+BOULwOup+GXqEngTHVWbGyyTIg==
- secure: QASI4U6nYlF1JjnifNi9uLq05409UBgejwp2uPCnueZEfj5TmGP3q1pWpJoVNzmuYFpGW8P/EdPJ5iu+6QVhyCqM894Zw2nVYx1M0CXPM/7Dsle8VK3KWGiTvZqvT9HYmOh/aTskuegzcEHBDl9nIP6hiy/pSc04QSrDTy6jtGvo6p/Hb6iHRuIuyu9nFFr/nKA7Y2Dnd1jk+ePVDHJSdcxuRXc8MVy3s0c4W1WrXx/IjDjILl1a2x9bBDidvyBfRiMD3R3lc6kXrXvyaJI/bN2mNAPKVmjbALimQ5AmCcXbHyGQ07o0OOLz65MeggFYszY2zd89ExYtWWyGlB9zWg==

notifications:
email: false
Expand Down

0 comments on commit 10d1d18

Please sign in to comment.