Skip to content

fix: add google services json to workflow #331

fix: add google services json to workflow

fix: add google services json to workflow #331

Workflow file for this run

name: PR build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: Set up Java
uses: actions/setup-java@v2
with:
java-version: 17
distribution: "temurin"
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 📁 Create google-services.json file
run: |
mkdir -p android/app
printf '%s' "${{ secrets.GOOGLE_SERVICES_JSON }}" > android/app/google-services.json
- name: Debug google-services.json
run: |
echo "File size is: $(du -b android/app/google-services.json || true) bytes"
head -n 5 android/app/google-services.json || true
- name: 🚀 Build app
run: eas build --non-interactive --platform android --local --profile preview --output=./app-release.apk
env:
GOOGLE_SERVICES_JSON: "./android/app/google-services.json"
- name: 🧪 Run tests
run: yarn test:ci
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: alby-go-android.apk
path: ./app-release.apk