File tree 4 files changed +42
-2
lines changed
4 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 8
8
- ' **.md'
9
9
- app/**
10
10
11
+ env :
12
+ KEYSTORE_PASSWORD : ${{ secrets.KEYSTORE_PASSWORD }}
13
+ RELEASE_SIGN_KEY_ALIAS : ${{ secrets.RELEASE_SIGN_KEY_ALIAS }}
14
+ RELEASE_SIGN_KEY_PASSWORD : ${{ secrets.RELEASE_SIGN_KEY_PASSWORD }}
15
+
11
16
jobs :
12
17
build :
13
18
runs-on : ubuntu-latest
24
29
- name : Test
25
30
run : ./gradlew fingerprint:test
26
31
27
- - name : Build
28
- run : ./gradlew fingerprint:assemble
32
+ - name : Build library
33
+ run : ./gradlew fingerprint:assembleRelease
34
+
35
+ - name : Save library to artifacts
36
+
37
+ uses : actions/upload-artifact@v2
38
+ - with :
39
+ path : fingerprint/build/outputs/aar/*
40
+
41
+ - name : Build App
42
+ run : ./gradlew app:assembleRelease
43
+
44
+ uses : actions/upload-artifact@v2
45
+ - with :
46
+ path : app/build/outputs/apk/release/*
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ captures/
44
44
# Uncomment the following lines if you do not want to check your keystore files in.
45
45
# *.jks
46
46
# *.keystore
47
+ app /keystore /*
47
48
48
49
# External native build folder generated in Android Studio 2.2 and later
49
50
.externalNativeBuild
Original file line number Diff line number Diff line change @@ -16,10 +16,31 @@ android {
16
16
testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
17
17
}
18
18
19
+ signingConfigs {
20
+ release {
21
+ def keystoreProperties = new Properties ()
22
+ def keystorePropsFile = file(" keystore/keystore_config" )
23
+
24
+ if (keystorePropsFile. exists()) {
25
+ file(" keystore/keystore_config" ). withInputStream { keystoreProperties. load(it) }
26
+ storeFile file(" $keystoreProperties . storeFile " )
27
+ storePassword " $keystoreProperties . storePassword "
28
+ keyAlias " $keystoreProperties . keyAlias "
29
+ keyPassword " $keystoreProperties . keyPassword "
30
+ } else {
31
+ storeFile file(" release.jks" )
32
+ storePassword System . getenv(' KEYSTORE_PASSWORD' )
33
+ keyAlias System . getenv(' RELEASE_SIGN_KEY_ALIAS' )
34
+ keyPassword System . getenv(' RELEASE_SIGN_KEY_PASSWORD' )
35
+ }
36
+ }
37
+ }
38
+
19
39
buildTypes {
20
40
release {
21
41
minifyEnabled false
22
42
proguardFiles getDefaultProguardFile(' proguard-android-optimize.txt' ), ' proguard-rules.pro'
43
+ signingConfig signingConfigs. release
23
44
}
24
45
}
25
46
You can’t perform that action at this time.
0 commit comments