Skip to content

Commit 57bc34f

Browse files
committed
Configure google-services.json for Github Actions
1 parent f6a738f commit 57bc34f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/android.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ jobs:
1919
java-version: '11'
2020
distribution: 'temurin'
2121
cache: gradle
22-
- name: Decode google-services.json
22+
- name: Decode release google-services.json
2323
env:
24-
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
25-
run: echo $GOOGLE_SERVICES_JSON > app/src/debug/google-services.json
24+
GOOGLE_SERVICES_JSON_RELEASE: ${{ secrets.GOOGLE_SERVICES_JSON_RELEASE }}
25+
run: echo $GOOGLE_SERVICES_JSON_RELEASE > app/src/release/google-services.json
26+
- name: Decode debug google-services.json
27+
env:
28+
GOOGLE_SERVICES_JSON_DEBUG: ${{ secrets.GOOGLE_SERVICES_JSON_DEBUG }}
29+
run: echo $GOOGLE_SERVICES_JSON_DEBUG > app/src/debug/google-services.json
2630
- name: Grant execute permission for gradlew
2731
run: chmod +x gradlew
2832
- name: Build with Gradle

0 commit comments

Comments
 (0)