File tree 4 files changed +24
-12
lines changed
4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 12
12
build :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
- name : set up JDK 11
17
- uses : actions/setup-java@v3
17
+ uses : actions/setup-java@v4
18
18
with :
19
19
java-version : ' 11'
20
20
distribution : ' temurin'
@@ -43,13 +43,13 @@ jobs:
43
43
# Login to Google using Firebase Admin SDK Service Agent Key
44
44
- id : ' auth'
45
45
name : Login to Google Cloud
46
- uses : ' google-github-actions/auth@v1 '
46
+ uses : ' google-github-actions/auth@v2 '
47
47
with :
48
48
credentials_json : ${{ secrets.GCP_CREDENTIALS }}
49
49
50
50
# Set up Cloud SDK
51
51
- name : ' Set up Cloud SDK'
52
- uses : ' google-github-actions/setup-gcloud@v1 '
52
+ uses : ' google-github-actions/setup-gcloud@v2 '
53
53
54
54
# Set Firebase Project ID
55
55
- name : Set current project
65
65
# #########################################
66
66
# Upload APK for Java version
67
67
- name : Upload APK Debug for Java
68
- uses : actions/upload-artifact@v3
68
+ uses : actions/upload-artifact@v4
69
69
with :
70
70
name : Java-Debug-APK
71
71
path : ${{ env.module_app }}/build/outputs/apk/debug/${{ env.module_app }}-debug.apk
Original file line number Diff line number Diff line change 12
12
build :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
17
17
# ###############################
18
18
# Update Version Code #
71
71
- name : Build with Gradle
72
72
run : ./gradlew assemble
73
73
74
+ - name : Setup build tool version variable
75
+ shell : bash
76
+ run : |
77
+ BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
78
+ echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
79
+ echo Last build tool version is: $BUILD_TOOL_VERSION
80
+
74
81
- name : Sign app APK
75
82
uses : r0adkll/sign-android-release@v1
76
83
# ID used to access action output
83
90
keyPassword : ${{ secrets.SIGN_APP_KEYPASS }}
84
91
env :
85
92
# override default build-tools version (29.0.3) -- optional
86
- BUILD_TOOLS_VERSION : " 30.0.2 "
93
+ BUILD_TOOLS_VERSION : ${{ env.BUILD_TOOL_VERSION }}
87
94
88
95
- name : Push to google play
89
96
uses : r0adkll/upload-google-play@v1
Original file line number Diff line number Diff line change 12
12
build :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
with :
17
17
ref : develop
18
18
fetch-depth : 0 # To Fetch All Tags and Branches
@@ -114,6 +114,13 @@ jobs:
114
114
- name : Build with Gradle
115
115
run : ./gradlew build
116
116
117
+ - name : Setup build tool version variable
118
+ shell : bash
119
+ run : |
120
+ BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
121
+ echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
122
+ echo Last build tool version is: $BUILD_TOOL_VERSION
123
+
117
124
- name : Sign app APK
118
125
uses : r0adkll/sign-android-release@v1
119
126
# ID used to access action output
@@ -126,7 +133,7 @@ jobs:
126
133
keyPassword : ${{ secrets.SIGN_APP_KEYPASS }}
127
134
env :
128
135
# override default build-tools version (29.0.3) -- optional
129
- BUILD_TOOLS_VERSION : " 30.0.2 "
136
+ BUILD_TOOLS_VERSION : ${{ env.BUILD_TOOL_VERSION }}
130
137
131
138
- name : Push to google play
132
139
uses : r0adkll/upload-google-play@v1
Original file line number Diff line number Diff line change @@ -56,9 +56,7 @@ dependencies {
56
56
androidTestImplementation(' androidx.test.espresso:espresso-core:3.1.0' , {
57
57
exclude group : ' com.androidx' , module : ' support-annotations'
58
58
})
59
- androidTestImplementation(' tools.fastlane:screengrab:1.1.0' , {
60
- exclude group : ' com.androidx' , module : ' support-annotations'
61
- })
59
+ androidTestImplementation ' tools.fastlane:screengrab:2.1.1'
62
60
63
61
testImplementation ' org.mockito:mockito-core:2.18.3'
64
62
androidTestImplementation ' org.mockito:mockito-android:2.18.3'
You can’t perform that action at this time.
0 commit comments