Skip to content

Commit de3a2bd

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

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

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

Lines changed: 19 additions & 1 deletion
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,10 +31,23 @@ 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
3244

45+
- name: Debug APK Output Directory
46+
run: |
47+
echo "Listing APK output directory:"
48+
ls -R ./android/app/build/outputs/apk/ || echo "Directory does not exist"
49+
shell: bash
50+
3351
- name: Copy Android APK to Shared Directory
3452
run: |
3553
mkdir -p ${{ github.workspace }}/artifacts/android-app
@@ -45,4 +63,4 @@ runs:
4563
uses: actions/upload-artifact@v4
4664
with:
4765
name: android-app
48-
path: ${{ github.workspace }}/artifacts/android/
66+
path: ${{ github.workspace }}/artifacts/android-app/

.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)