Skip to content

Commit

Permalink
Fixed circle ci deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
konifar committed Feb 13, 2016
1 parent 2361e12 commit 1b0871f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ test:
# - sleep 30
# - adb shell input keyevent 82
# - ./gradlew clean assembleProductionDebug check connectedAndroidTest -PdisablePreDex
- ./gradlew clean assembleProductionRelease check
- ./gradlew clean assembleProductionDebug check

general:
artifacts:
# TODO Fix this because this section run before deployment section, release build apk is nothing.
- "app/build/outputs/apk/app-production-release.apk" # relative to the build directory

deployment:
Expand Down
1 change: 1 addition & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
GIT_HASH=`git rev-parse --short HEAD`

./gradlew clean assembleProductionRelease
curl -F "file=@app/build/outputs/apk/app-production-release.apk" -F "token=${DEPLOY_GATE_API_KEY}" -F "message=https://github.com/konifar/droidkaigi2016/tree/${GIT_HASH} https://circleci.com/gh/konifar/droidkaigi2016/${CIRCLE_BUILD_NUM}" -F "distribution_key=901884d8a27b8bd9c368109b0cc5c941a6821076" -F "release_note=https://github.com/konifar/droidkaigi2016/tree/${GIT_HASH} https://circleci.com/gh/konifar/droidkaigi2016/${CIRCLE_BUILD_NUM}" https://deploygate.com/api/users/konifar/apps

0 comments on commit 1b0871f

Please sign in to comment.