GitLab app distribution for Android builds
GitLab CI/CD can be used to deploy Android apps with the API Upload (curl) to Updraft.
Last updated
stages:
- build
- updraft
buildProd:
stage: build
only:
- release
script:
- ./gradlew app:assembleProdRelease
artifacts:
paths:
- app/build/outputs/apk/prod/release/*.apk
deploy:
stage: updraft
only:
- release
script:
- |
curl \
-F whats_new="Gitlab build" \
-F "app=@app/build/outputs/apk/prod/release/android.apk" \
-X PUT https://getupdraft.com/api/app_upload/$UPDRAFT_APP_KEY/$UPDRAFT_API_KEY/