File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' janus_release_v.+'
7+
8+ jobs :
9+ release :
10+ runs-on : ubuntu-latest
11+ container : ghcr.io/menny/android:1.21.2
12+ permissions :
13+ contents : write
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4.2.2
17+
18+ - name : Checkout Secrets
19+ uses : actions/checkout@v4.2.2
20+ with :
21+ repository : AnySoftKeyboard/secrets
22+ token : ${{ secrets.BOT_MASTER_RW_GITHUB_TOKEN_JANUS }}
23+ path : secrets_repo
24+
25+ - name : Build and Sign
26+ run : ./gradlew assembleRelease bundleRelease
27+ env :
28+ KEYSTORE_FILE : ${{ github.workspace }}/secrets_repo/anysoftkeyboard.keystore
29+ KEYSTORE_PASSWORD : ${{ secrets.ANYSOFTKEYBOARD_KEYSTORE_PASSWORD }}
30+ KEY_ALIAS : ${{ secrets.JANUS_RELEASE_KEYSTORE_ALIAS }}
31+ KEY_PASSWORD : ${{ secrets.JANUS_RELEASE_KEYSTORE_KEY_PASSWORD }}
32+
33+ - name : Release
34+ uses : softprops/action-gh-release@v2
35+ with :
36+ files : |
37+ app/build/outputs/apk/release/*.apk
38+ app/build/outputs/bundle/release/*.aab
Original file line number Diff line number Diff line change @@ -20,10 +20,20 @@ android {
2020 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
2121 }
2222
23+ signingConfigs {
24+ create(" release" ) {
25+ storeFile = System .getenv(" KEYSTORE_FILE" )?.let { file(it) }
26+ storePassword = System .getenv(" KEYSTORE_PASSWORD" )
27+ keyAlias = System .getenv(" KEY_ALIAS" )
28+ keyPassword = System .getenv(" KEY_PASSWORD" )
29+ }
30+ }
31+
2332 buildTypes {
2433 release {
2534 isMinifyEnabled = false
2635 proguardFiles(getDefaultProguardFile(" proguard-android-optimize.txt" ), " proguard-rules.pro" )
36+ signingConfig = signingConfigs.getByName(" release" )
2737 }
2838 }
2939 compileOptions {
You can’t perform that action at this time.
0 commit comments