Skip to content

EAS - Build Android #14

EAS - Build Android

EAS - Build Android #14

name: EAS - Build Android
on:
workflow_dispatch:
inputs:
config:
description: "HPAPP_CONFIG_NAME set"
required: true
default: "dev"
type: choice
options:
- dev
- beta
- prod
env:
NODE_VERSION: 22.3.0
EAS_VERSION: 13.4.2
JAVA_VERSION: 17
jobs:
build:
strategy:
matrix:
config: [dev]
runs-on: ubuntu-latest
if: ${{ (inputs.config == matrix.config) }}

Check failure on line 24 in .github/workflows/eas-build-android.yml

View workflow run for this annotation

GitHub Actions / EAS - Build Android

Invalid workflow file

The workflow is not valid. .github/workflows/eas-build-android.yml (Line: 24, Col: 9): Unrecognized named-value: 'matrix'. Located at position 19 within expression: (inputs.config == matrix.config)
environment:
name: eas-${{ matrix.config }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
cache-dependency-path: "expo/package.json"
- uses: expo/expo-github-action@v8
with:
eas-version: ${{ env.EAS_VERSION }}
token: ${{ secrets.EXPO_TOKEN }}
- uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: "temurin"
- uses: android-actions/setup-android@v3
- run: cd expo && ./scripts/eas-githubaction-pre.sh
env:
HPAPP_CONFIG_NAME: ${{inputs.config}}
SECRETS_JSON: ${{ secrets.SECRETS_JSON }}
GOOGLE_SERVICES_INFO_PLIST: ${{ secrets.GOOGLE_SERVICES_INFO_PLIST }}
GOOGLE_SERVICES_JSON: ${{ secrets.GOOGLE_SERVICES_JSON }}
- run: cd expo && yarn install
- run: cd expo && ./scripts/eas.sh build --profile ${{ matrix.config }} --platform android --local --output ./build/hpapp-${{ matrix.config }}.apk
env:
HPAPP_CONFIG_NAME: ${{ matrix.config }}