Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andhikayuana/7cd6faf951b170607d3ac0bcc905e6b4 to your computer and use it in GitHub Desktop.
Save andhikayuana/7cd6faf951b170607d3ac0bcc905e6b4 to your computer and use it in GitHub Desktop.
$ git clone git@github.com:andhikayuana/realm-crud.git
$ cd /ke/proyek/android
$ git init
$ git add .
$ git commit -m "initiation"
#!/usr/bin/env bash
LATEST_APK=$(ls -lrt ./app/build/outputs/apk/*.apk | tail -1 | awk -F" " '{ print $9 }') #Pick the latest build apk.
FILE_NAME=$(basename $LATEST_APK .apk)".apk"
BUILD_DATE=`date +%Y-%m-%d` #optional -- For changelog title.
FILE_TITLE=$(basename $LATEST_APK .apk) #optional -- For changelog title.
image: azabost/android-sdk-27:latest
pipelines:
branches:
master:
- step:
caches:
- gradle
script:
########## Build versi DEBUG ##########
- ./gradlew assembleDebug
- . ./setup_export.sh
########## UPLOAD TO BITBUCKET DOWNLOADS ##########
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"${LATEST_APK}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment