forked from logukavin/libatsc3-middleware-sample-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish-app-to-google-play.yml
38 lines (32 loc) · 1.26 KB
/
publish-app-to-google-play.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Android
# Build your Android project with Gradle.
# Add steps that test, sign, and distribute the APK, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/android
pool:
vmImage: 'ubuntu-latest'
variables:
- group: keystore-properties
steps:
- bash:
echo "y" | sudo $(ANDROID_SDK_ROOT)/tools/bin/sdkmanager --install "ndk;21.1.6352462" --sdk_root=${ANDROID_SDK_ROOT}
displayName: 'Setup NDK 21.1.6352462'
- task: MavenAuthenticate@0
displayName: 'Maven Authenticate'
inputs:
artifactsFeeds: 'middleware, nextgen'
- task: DownloadSecureFile@1
name: authJsonFile
displayName: 'Download secure file'
inputs:
secureFile: 'middleware-service-connection.json'
- task: Gradle@2
inputs:
workingDirectory: 'sample-app'
gradleWrapperFile: 'gradlew'
javaHomeOption: 'JDKVersion'
gradleOptions: '-Xmx3072m'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
options: '-PversionCode=$(Build.BuildId) -PstoreFile=$(storeFile) -Ppassword=$(password) -PkeyAlias=$(keyAlias) -PkeyPassword=$(keyPassword) -PauthJsonFilePath=$(authJsonFile.secureFilePath)'
tasks: 'clean publishEmbeddedReleaseApk'
displayName: gradlew build and publish apk