Skip to content

Commit 431fa32

Browse files
committed
Decode google-services secret in github ci workflow
1 parent 1439735 commit 431fa32

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/ci-mwcore.yml

+10
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
with:
3131
java-version: 11
3232

33+
- name: Decode google-services.json
34+
run: echo $ENCODED_GOOGLE_SERVICES_JSON | base64 -d > android/quest/google-services.json
35+
env:
36+
ENCODED_GOOGLE_SERVICES_JSON: ${{ secrets.MWCORE_GOOGLE_SERVICES_JSON }}
37+
3338
- name: Grant execute permission for gradlew
3439
run: chmod +x gradlew
3540
working-directory: android
@@ -65,6 +70,11 @@ jobs:
6570
with:
6671
java-version: 11
6772

73+
- name: Decode google-services.json
74+
run: echo $ENCODED_GOOGLE_SERVICES_JSON | base64 -d > android/quest/google-services.json
75+
env:
76+
ENCODED_GOOGLE_SERVICES_JSON: ${{ secrets.MWCORE_GOOGLE_SERVICES_JSON }}
77+
6878
- name: Grant execute permission for gradlew
6979
run: chmod +x gradlew
7080
working-directory: android

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ captures/
2323
# IntelliJ
2424
*.iml
2525
.idea
26-
android/quest/google-services.json
26+
*google-services.json

0 commit comments

Comments
 (0)