Skip to content

Commit

Permalink
[ADD/#178] keyStoreProperties 디버깅 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Nov 30, 2024
1 parent 6791a4e commit 5175fa4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/firebase_distribution_builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ jobs:
run: |
echo "$keystore_file" > app/gentiKeyStore.b64
base64 -d -i app/gentiKeyStore.b64 > app/gentiKeyStore.jks
echo "KEYSTORE_PATH=/home/runner/work/Genti-Android/Genti-Android/app/gentiKeyStore.jks" >> $GITHUB_ENV
- name: Access Keystore Properties
env:
store_password: ${{ secrets.STORE_PASSWORD }}
key_password: ${{ secrets.KEY_PASSWORD }}
key_alias: ${{ secrets.KEY_ALIAS }}
run: |
echo "storeFile=gentiKeyStore.jks" > keystore.properties
echo "storePassword=\"$store_password\"" >> keystore.properties
echo "keyAlias=\"$key_alias\"" >> keystore.properties
echo "keyPassword=\"$key_password\"" >> keystore.properties
Expand Down
10 changes: 8 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ android {
val keystorePropertiesFile = rootProject.file("keystore.properties")
val keystoreProperties = Properties()
if (keystorePropertiesFile.exists()) {
println("keystore.properties 파일이 존재합니다: ${keystorePropertiesFile.absolutePath}")
keystoreProperties.load(keystorePropertiesFile.inputStream())
println("keystore.properties 파일 로드 성공!")
println("storePassword: ${keystoreProperties["storePassword"]}")
println("keyAlias: ${keystoreProperties["keyAlias"]}")
println("keyPassword: ${keystoreProperties["keyPassword"]}")
} else {
println("keystore.properties 파일이 존재하지 않습니다: ${keystorePropertiesFile.absolutePath}")
}
signingConfigs {
create("release") {
val keystorePath = System.getenv("KEYSTORE_PATH") ?: "${rootDir}/app/gentiKeyStore.jks"
storeFile = file(keystorePath)
storeFile = file(keystoreProperties["storeFile"] as String)
storePassword = keystoreProperties["storePassword"] as String
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
Expand Down

0 comments on commit 5175fa4

Please sign in to comment.