Skip to content

Commit

Permalink
[FIX/#178] KEYSTORE_PATH 환경 변수 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchbreeze committed Nov 30, 2024
1 parent bcc3cb4 commit 6791a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .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 All @@ -84,9 +84,6 @@ jobs:
- name: Access Firebase Service
run: echo '${{ secrets.GOOGLE_SERVICES_JSON }}' > ./app/google-services.json

- name: Clean project
run: ./gradlew clean

- name: Build release APK
run: ./gradlew assembleRelease --stacktrace

Expand Down
3 changes: 2 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ android {
}
signingConfigs {
create("release") {
storeFile = file(keystoreProperties["storeFile"] as String)
val keystorePath = System.getenv("KEYSTORE_PATH") ?: "${rootDir}/app/gentiKeyStore.jks"
storeFile = file(keystorePath)
storePassword = keystoreProperties["storePassword"] as String
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
Expand Down

0 comments on commit 6791a4e

Please sign in to comment.