Files
sofa/.github/workflows/eas-build.yml
T

52 lines
1.1 KiB
YAML

name: EAS Build
on:
workflow_dispatch:
inputs:
platform:
description: Platform to build
type: choice
options:
- all
- ios
- android
default: all
profile:
description: Build profile
type: choice
options:
- production
- development
default: production
push:
branches: [main]
paths:
- apps/native/**
- packages/api/**
jobs:
build:
name: EAS Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: oven-sh/setup-bun@v2
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build
working-directory: apps/native
run: eas build --platform ${{ inputs.platform || 'all' }} --profile ${{ inputs.profile || 'production' }} --non-interactive --no-wait