Skip to content

Commit

Permalink
[MERGE] v2.1.0 test3 -> production
Browse files Browse the repository at this point in the history
[PRODUCTION] Firebase App Distribution 테스트 3
  • Loading branch information
Marchbreeze authored Nov 30, 2024
2 parents 05eb7a8 + 9e78ccb commit 616883f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/firebase_distribution_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,23 @@ jobs:
echo "amplitude.api.key=\"$amplitude_api_key\"" >> local.properties
echo "amplitude.test.key=\"$amplitude_test_key\"" >> local.properties
- name: Access Keystore Properties
- name: Set up keystore
env:
keystore_file: ${{ secrets.KEYSTORE_FILE }}
run: |
echo "$keystore_file" > app/gentiKeyStore.b64
base64 -d -i app/gentiKeyStore.b64 > app/gentiKeyStore.jks
- name: Access Keystore Properties
env:
store_password: ${{ secrets.STORE_PASSWORD }}
key_password: ${{ secrets.KEY_PASSWORD }}
key_alias: ${{ secrets.KEY_ALIAS }}
run: |
echo "$keystore_file" | base64 -d > keystore.jks
echo "storeFile=keystore.jks" > keystore.properties
echo "storePassword=\"$store_password\"" >> keystore.properties
echo "keyAlias=\"$key_alias\"" >> keystore.properties
echo "keyPassword=\"$key_password\"" >> keystore.properties
echo "storeFile=gentiKeyStore.jks" > keystore.properties
echo "storePassword=$store_password" >> keystore.properties
echo "keyAlias=$key_alias" >> keystore.properties
echo "keyPassword=$key_password" >> keystore.properties
- name: Access Firebase Service
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json
Expand All @@ -77,7 +82,7 @@ jobs:
with:
appId: ${{ secrets.FIREBASE_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_APP_DISTRIBUTION_KEY }}
groups: tester
groups: genti
file: app/build/outputs/apk/release/app-release.apk

- name: Sync Production to Develop
Expand Down
5 changes: 3 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ android {

val keystorePropertiesFile = rootProject.file("keystore.properties")
val keystoreProperties = Properties()
keystoreProperties.load(keystorePropertiesFile.inputStream())

if (keystorePropertiesFile.exists()) {
keystoreProperties.load(keystorePropertiesFile.inputStream())
}
signingConfigs {
create("release") {
storeFile = file(keystoreProperties["storeFile"] as String)
Expand Down

0 comments on commit 616883f

Please sign in to comment.