Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/develop_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,29 @@ jobs:
- name: check out repository
uses: actions/checkout@v4

- name: Decode Keystore
env:
RELEASE_STORE_BASE_64: ${{ secrets.RELEASE_STORE_BASE_64 }}
run: |
echo $RELEASE_STORE_BASE_64 > encoded_keystore.txt
base64 --decode encoded_keystore.txt > release.jks

- name: Generate local.properties
env:
KAKAO_NATIVE_APP_KEY: ${{ secrets.KAKAO_NATIVE_APP_KEY }}
BITNAGIL_DEV_URL: ${{ secrets.BITNAGIL_DEV_URL }}
BITNAGIL_PROD_URL: ${{ secrets.BITNAGIL_PROD_URL }}
RELEASE_KEY_ALIAS: ${{ secrets.RELEASE_KEY_ALIAS }}
RELEASE_KEY_PASSWORD: ${{ secrets.RELEASE_KEY_PASSWORD }}
RELEASE_STORE_PASSWORD: ${{ secrets.RELEASE_STORE_PASSWORD }}
run: |
echo "kakao.native.app.key=$KAKAO_NATIVE_APP_KEY" >> local.properties
echo "bitnagil.dev.url=$BITNAGIL_DEV_URL" >> local.properties
echo "bitnagil.prod.url=$BITNAGIL_PROD_URL" >> local.properties
echo "release.key.alias=$RELEASE_KEY_ALIAS" >> local.properties
echo "release.key.password=$RELEASE_KEY_PASSWORD" >> local.properties
echo "release.keystore.password=$RELEASE_STORE_PASSWORD" >> local.properties
echo "release.keystore.path=../release.jks" >> local.properties

- name: set up JDK 17
uses: actions/setup-java@v4
Expand Down
16 changes: 16 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,21 @@ android {
}
}

signingConfigs {
create("release") {
keyAlias = properties["release.key.alias"] as? String
?: System.getenv("RELEASE_KEY_ALIAS")
?: throw GradleException("RELEASE_KEY_ALIAS 값이 없습니다.")
keyPassword = properties["release.key.password"] as? String
?: System.getenv("RELEASE_KEY_PASSWORD")
?: throw GradleException("RELEASE_KEY_PASSWORD 값이 없습니다.")
storePassword = properties["release.keystore.password"] as? String
?: System.getenv("RELEASE_KEYSTORE_PASSWORD")
?: throw GradleException("RELEASE_KEYSTORE_PASSWORD 값이 없습니다.")
storeFile = File("${properties["release.keystore.path"]}")
}
}
Comment thread
l5x5l marked this conversation as resolved.

defaultConfig {
applicationId = "com.threegap.bitnagil"

Expand Down Expand Up @@ -51,6 +66,7 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
)
signingConfig = signingConfigs.getByName("release")
}
}

Expand Down