File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 - store_artifacts :
3838 path : app/build/outputs/mapping/release/mapping.txt
3939
40+ publish-google-play :
41+ executor : android/android
42+ steps :
43+ - checkout
44+ - run :
45+ name : Check, test, build and publish the app to firebase.
46+ command : |
47+ echo "keyPassword=$RELEASE_KEY_PASSWORD" >> signing.properties
48+ # convert to env var
49+ # - base64 ./release.keystore > ./release.keystore.base64
50+ # - Copy content of ./release.keystore.base64 to env var
51+ echo $RELEASE_KEYSTORE_BASE64 | base64 --decode > release.keystore
52+ echo $GOOGLE_SERVICES_JSON > app/google-services.json
53+ ./gradlew check assembleRelease bundleRelease publish
54+ # remove file to not include it as artifact
55+ rm app/build/outputs/apk/release/output.json
56+ - persist_to_workspace :
57+ root : app/build/outputs/
58+ paths :
59+ - apk/release/*.apk
60+ - bundle/release/*
61+ - mapping/release/mapping.txt
62+ - store_test_results :
63+ path : app/build/test-results
64+ - store_artifacts :
65+ path : app/build/outputs/apk/release
66+ - store_artifacts :
67+ path : app/build/outputs/bundle/release
68+ - store_artifacts :
69+ path : app/build/outputs/mapping/release/mapping.txt
70+
4071 publish-github-release :
4172 docker :
4273 - image : circleci/golang:1.10
@@ -55,13 +86,16 @@ workflows:
5586 version : 2
5687 build-n-publish :
5788 jobs :
58- - build :
89+ - build
90+ - publish-google-play :
5991 filters :
6092 tags :
6193 only : /^v.*/
94+ branches :
95+ ignore : /.*/
6296 - publish-github-release :
6397 requires :
64- - build
98+ - publish-google-play
6599 filters :
66100 tags :
67101 only : /^v.*/
Original file line number Diff line number Diff line change @@ -2,11 +2,23 @@ import org.ajoberstar.grgit.Grgit
22
33import java.text.SimpleDateFormat
44
5- apply plugin : ' com.android.application'
6- apply plugin : ' kotlin-android'
7- apply plugin : ' kotlin-android-extensions'
8- apply plugin : ' kotlin-kapt'
9- apply plugin : ' io.gitlab.arturbosch.detekt'
5+ plugins {
6+ id ' com.android.application'
7+ id ' kotlin-android'
8+ id ' kotlin-android-extensions'
9+ id ' kotlin-kapt'
10+ id ' io.gitlab.arturbosch.detekt'
11+ id ' com.github.triplet.play' version ' 2.8.0' apply false
12+ }
13+ if (System . getenv(" ANDROID_PUBLISHER_CREDENTIALS" ) != null ) {
14+ apply plugin : ' com.github.triplet.play'
15+
16+ play {
17+ defaultToAppBundles = true
18+ track = " beta"
19+ releaseStatus = " draft"
20+ }
21+ }
1022
1123if (file(" google-services.json" ). canRead()) {
1224 apply plugin : ' com.google.gms.google-services'
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-5.6.4 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.5 -all.zip
You can’t perform that action at this time.
0 commit comments