-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (50 loc) · 1.54 KB
/
eas-build-android.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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-dev:
runs-on: ubuntu-latest
if: ${{ (inputs.config == 'dev') }}
environment:
name: eas-dev
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 dev --platform android --local --output ./build/hpapp-${{inputs.config}}.apk
env:
HPAPP_CONFIG_NAME: ${{inputs.config}}
NODE_ENV: production