diff --git a/create-release.sh b/create-release.sh index edabf51..f5ef101 100644 --- a/create-release.sh +++ b/create-release.sh @@ -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 diff --git a/shippable.yml b/shippable.yml index 0ae889e..676d7c1 100644 --- a/shippable.yml +++ b/shippable.yml @@ -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