Skip to content

Commit f9df08a

Browse files
committed
Include all Android tasks for signing & Play CI
1 parent 28b18e0 commit f9df08a

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/gradle.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
127127
ANDROID_KEY_PASSWD: ${{ secrets.ANDROID_KEY_PASSWD }}
128128

129-
- name: Upload the Android Build Artifact
129+
- name: Upload the Android build artifact
130130
uses: actions/upload-artifact@v5
131131
with:
132132
# Artifact name
@@ -148,6 +148,24 @@ jobs:
148148
files: |
149149
./SlimeVR-android.apk
150150
151+
- name: Build Google Play release bundle
152+
if: startsWith(github.ref, 'refs/tags/')
153+
run: ./gradlew :server:android:bundleRelease
154+
env:
155+
ANDROID_STORE_FILE: ${{ secrets.ANDROID_GPLAY_STORE_FILE }}
156+
ANDROID_STORE_PASSWD: ${{ secrets.ANDROID_GPLAY_STORE_PASSWD }}
157+
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_GPLAY_KEY_ALIAS }}
158+
ANDROID_KEY_PASSWD: ${{ secrets.ANDROID_GPLAY_KEY_PASSWD }}
159+
160+
- name: Upload the Google Play artifact
161+
uses: actions/upload-artifact@v5
162+
if: startsWith(github.ref, 'refs/tags/')
163+
with:
164+
# Artifact name
165+
name: 'SlimeVR-Google-Play-Upload' # optional, default is artifact
166+
# A file, directory or wildcard pattern that describes what to upload
167+
path: server/android/build/outputs/bundle/release/*
168+
151169
bundle-linux:
152170
strategy:
153171
matrix:

server/android/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* For more details take a look at the Java Libraries chapter in the Gradle
66
* User Manual available at https://docs.gradle.org/6.3/userguide/java_library_plugin.html
77
*/
8-
import com.android.build.gradle.tasks.PackageApplication
8+
import com.android.build.gradle.internal.tasks.BaseTask
99
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
1010
import org.jetbrains.kotlin.gradle.internal.ensureParentDirsCreated
1111
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@@ -51,7 +51,7 @@ val preSign = tasks.register("preSign") {
5151
val postSign = tasks.register("postSign") {
5252
finalizedBy(deleteTempKeyStore)
5353
}
54-
tasks.withType<PackageApplication> {
54+
tasks.withType<BaseTask> {
5555
dependsOn(preSign)
5656
finalizedBy(postSign)
5757
}

0 commit comments

Comments
 (0)