-
Notifications
You must be signed in to change notification settings - Fork 33
47 lines (44 loc) · 1.3 KB
/
eas-build.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
name: EAS Build
on:
workflow_dispatch:
inputs:
profile:
description: "Profile"
type: choice
default: simulator
required: true
options:
- simulator
- development
- preview
- production
submit:
description: "Submit to App Store"
type: boolean
required: true
default: false
jobs:
update:
name: EAS Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
packager: bun
token: ${{ secrets.EXPO_TOKEN }}
- name: 📢 EAS Build
run: eas build -e ${{ inputs.profile }} -p ios --non-interactive --no-wait
working-directory: ./apps/app
if: ${{ inputs.profile == 'simulator' || inputs.profile == 'development' || !inputs.submit }}
- name: 📢 EAS Build and Submit
run: eas build -e ${{ inputs.profile }} -p ios --non-interactive --no-wait --auto-submit
working-directory: ./apps/app
if: ${{ inputs.submit && inputs.profile == 'production' }}