File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 SIGN_KEY_STORE_PASSWORD : ${{ secrets.SIGN_KEY_STORE_PASSWORD || 'passwd' }}
1111 SIGN_KEY_PASSWORD : ${{ secrets.SIGN_KEY_PASSWORD || 'passwd' }}
1212 SIGN_KEY_STORE_FILE : ${{ github.workspace }}/keystore.jks
13+ NIGHTLY : true
1314jobs :
1415 build :
1516 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -175,12 +175,17 @@ android {
175175 versionNameSuffix = " .d$gitVersionCode .$gitVersionName "
176176 }
177177 release {
178+ val nightly = System .getenv(" NIGHTLY" )?.toBoolean() == true
178179 isMinifyEnabled = true
179180 proguardFiles(
180181 getDefaultProguardFile(" proguard-android-optimize.txt" ),
181182 " proguard-rules.pro"
182183 )
183- versionNameSuffix = " .r$gitVersionCode .$gitVersionName "
184+ if (nightly) {
185+ versionNameSuffix = " .n$gitVersionCode .nightly"
186+ } else {
187+ versionNameSuffix = " .r$gitVersionCode .$gitVersionName "
188+ }
184189 signingConfig = signingConfigs.getByName(" sign" )
185190 }
186191 }
You can’t perform that action at this time.
0 commit comments