Skip to content

Commit 04bb32f

Browse files
committed
Add google-services as a secret
1 parent bab4293 commit 04bb32f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/actions/build-android/action.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: 'Build Android App'
22
description: 'Builds the Android app using Fastlane'
33

4+
inputs:
5+
google_services_json:
6+
description: 'Base64-encoded google-services.json file'
7+
required: true
8+
49
runs:
510
using: composite
611

@@ -26,6 +31,13 @@ runs:
2631
with:
2732
node-version-file: .nvmrc
2833

34+
- name: Decode google-services.json
35+
env:
36+
GOOGLE_SERVICES_JSON: ${{ inputs.google_services_json }}
37+
run: |
38+
echo $GOOGLE_SERVICES_JSON | base64 --decode > android/app/google-services.json
39+
shell: bash
40+
2941
- name: Build Android APK with Fastlane
3042
run: npm run android:debug
3143
shell: bash

.github/workflows/MiNe2e.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,11 @@ jobs:
100100
runs-on: ubuntu-22.04
101101
steps:
102102
- name: "Check out code"
103-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
103+
uses: actions/checkout@v4
104104
- name: Build android apk
105105
uses: ./.github/actions/build-android
106+
with:
107+
google_services_json: ${{ secrets.GOOGLE_SERVICES_JSON }}
106108

107109
android-test:
108110
needs: [mendix-version, project, android-app]

0 commit comments

Comments
 (0)