EAS - Build Android #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / EAS - Build AndroidInvalid workflow file
|
||
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 }} |