File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy to Google Play Store
2+ on :
3+ push :
4+ branches :
5+ - release/*
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Checkout Code
13+ - uses : actions/checkout@v2
14+
15+ - name : Setup JDK
16+ uses : actions/setup-java@v1
17+ with :
18+ java-version : 1.8
19+
20+ - name : Build
21+ run : ./gradlew build
22+
23+ - name : Assemble Release Build
24+ run : |
25+ ./gradlew bundleRelease
26+
27+ - name : Sign Release
28+ uses : r0adkll/sign-android-release@v1
29+ with :
30+ releaseDirectory : app/build/outputs/bundle/release
31+ signingKeyBase64 : ${{ secrets.SIGNING_KEY }}
32+ alias : ${{ secrets.ALIAS }}
33+ keyStorePassword : ${{ secrets.KEY_STORE_PASSWORD }}
34+ keyPassword : ${{ secrets.KEY_PASSWORD }}
35+
36+ - name : Tag Release
37+ run : |
38+ version_name=${GITHUB_REF##*/}
39+ echo "Tagging release with tag $version_name"
40+ git tag $version_name release/$version_name
41+ git push origin --tags
42+
43+ - name : Create service_account.json
44+ run echo '${{ secrets.SERVICE_ACCOUNT_JSON }}' > service_
45+
46+ - name : Deploy to Alpha
47+ uses : r0adkll/upload-google-play@v1
48+ with :
49+ serviceAccountJsonPlainText : ${{ secrets.SERVICE_ACCOUNT_JSON }}
50+ packageName : com.wajahatkarim3.imagine
51+ releaseFile : app/build/outputs/bundle/release/app-release.aab
52+ track : alpha
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ spotless {
119119}
120120
121121junitJacoco {
122- jacocoVersion = ' 0.8.3 '
122+ jacocoVersion = ' 0.8.2 '
123123 includeNoLocationClasses = false
124124 includeInstrumentationCoverageInMergedReport = true
125125 excludes = [
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ buildscript {
2222 jcenter()
2323 }
2424 dependencies {
25- classpath ' com.android.tools.build:gradle:7.0.0-alpha11 '
25+ classpath ' com.android.tools.build:gradle:4.1.2 '
2626 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
2727 classpath " com.google.dagger:hilt-android-gradle-plugin:$hilt_version "
2828 classpath " com.vanniktech:gradle-android-junit-jacoco-plugin:0.16.0"
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-6.8.2 -bin.zip
6+ distributionUrl =https://services.gradle.org/distributions/gradle-6.5 -bin.zip
You can’t perform that action at this time.
0 commit comments