File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,15 +14,29 @@ jobs:
1414 - name : check out repository
1515 uses : actions/checkout@v4
1616
17+ - name : Decode Keystore
18+ env :
19+ RELEASE_STORE_BASE_64 : ${{ secrets.RELEASE_STORE_BASE_64 }}
20+ run : |
21+ echo $RELEASE_STORE_BASE_64 > encoded_keystore.txt
22+ base64 --decode encoded_keystore.txt > release.jks
23+
1724 - name : Generate local.properties
1825 env :
1926 KAKAO_NATIVE_APP_KEY : ${{ secrets.KAKAO_NATIVE_APP_KEY }}
2027 BITNAGIL_DEV_URL : ${{ secrets.BITNAGIL_DEV_URL }}
2128 BITNAGIL_PROD_URL : ${{ secrets.BITNAGIL_PROD_URL }}
29+ RELEASE_KEY_ALIAS : ${{ secrets.RELEASE_KEY_ALIAS }}
30+ RELEASE_KEY_PASSWORD : ${{ secrets.RELEASE_KEY_PASSWORD }}
31+ RELEASE_STORE_PASSWORD : ${{ secrets.RELEASE_STORE_PASSWORD }}
2232 run : |
2333 echo "kakao.native.app.key=$KAKAO_NATIVE_APP_KEY" >> local.properties
2434 echo "bitnagil.dev.url=$BITNAGIL_DEV_URL" >> local.properties
2535 echo "bitnagil.prod.url=$BITNAGIL_PROD_URL" >> local.properties
36+ echo "release.key.alias=$RELEASE_KEY_ALIAS" >> local.properties
37+ echo "release.key.password=$RELEASE_KEY_PASSWORD" >> local.properties
38+ echo "release.keystore.password=$RELEASE_STORE_PASSWORD" >> local.properties
39+ echo "release.keystore.path=../release.jks" >> local.properties
2640
2741 - name : set up JDK 17
2842 uses : actions/setup-java@v4
Original file line number Diff line number Diff line change @@ -17,6 +17,21 @@ android {
1717 }
1818 }
1919
20+ signingConfigs {
21+ create(" release" ) {
22+ keyAlias = properties[" release.key.alias" ] as ? String
23+ ? : System .getenv(" RELEASE_KEY_ALIAS" )
24+ ? : throw GradleException (" RELEASE_KEY_ALIAS 값이 없습니다." )
25+ keyPassword = properties[" release.key.password" ] as ? String
26+ ? : System .getenv(" RELEASE_KEY_PASSWORD" )
27+ ? : throw GradleException (" RELEASE_KEY_PASSWORD 값이 없습니다." )
28+ storePassword = properties[" release.keystore.password" ] as ? String
29+ ? : System .getenv(" RELEASE_KEYSTORE_PASSWORD" )
30+ ? : throw GradleException (" RELEASE_KEYSTORE_PASSWORD 값이 없습니다." )
31+ storeFile = File (" ${properties[" release.keystore.path" ]} " )
32+ }
33+ }
34+
2035 defaultConfig {
2136 applicationId = " com.threegap.bitnagil"
2237
@@ -51,6 +66,7 @@ android {
5166 getDefaultProguardFile(" proguard-android-optimize.txt" ),
5267 " proguard-rules.pro" ,
5368 )
69+ signingConfig = signingConfigs.getByName(" release" )
5470 }
5571 }
5672
You can’t perform that action at this time.
0 commit comments