Skip to content

Commit 93de905

Browse files
committed
[NDGL-108] chore: CI/CD에 Keystore 및 Base URL 설정 추가
1 parent 6d2004d commit 93de905

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/android_ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,20 @@ jobs:
3030
- name: Set up local.properties
3131
run: echo "${{ secrets.LOCAL_PROPERTIES }}" > local.properties
3232

33+
- name: Set up keystore
34+
run: |
35+
echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > app/ndgl.keystore
36+
echo "KEYSTORE_PATH=../app/ndgl.keystore" >> local.properties
37+
echo "KEYSTORE_STORE_PASSWORD=${{ secrets.KEYSTORE_STORE_PASSWORD }}" >> local.properties
38+
echo "KEYSTORE_ALIAS=${{ secrets.KEYSTORE_ALIAS }}" >> local.properties
39+
echo "KEYSTORE_KEY_PASSWORD=${{ secrets.KEYSTORE_KEY_PASSWORD }}" >> local.properties
40+
echo "NDGL_BASE_URL_DEBUG=${{ secrets.NDGL_BASE_URL_DEBUG }}" >> local.properties
41+
echo "NDGL_BASE_URL_RELEASE=${{ secrets.NDGL_BASE_URL_RELEASE }}" >> local.properties
42+
3343
- name: Set up google-services.json
34-
run: echo '${{ secrets.GOOGLE_SERVICES }}' | base64 -d > app/google-services.json
44+
run: |
45+
echo '${{ secrets.GOOGLE_SERVICES_DEBUG }}' | base64 -d > app/src/debug/google-services.json
46+
echo '${{ secrets.GOOGLE_SERVICES_RELEASE }}' | base64 -d > app/src/release/google-services.json
3547
3648
- name: Code style checks
3749
run: ./gradlew ktlintCheck detekt

0 commit comments

Comments
 (0)