-
Notifications
You must be signed in to change notification settings - Fork 959
66 lines (58 loc) · 1.53 KB
/
build-eas.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build iOS IPA
on:
push:
branches: [dev, main]
paths:
- "apps/mobile/**"
pull_request:
branches: [dev, main]
paths:
- "apps/mobile/**"
workflow_dispatch:
inputs:
profile:
type: choice
default: preview
options:
- preview
- production
description: "Build profile"
jobs:
build:
name: Build iOS IPA
runs-on: macos-latest
steps:
- name: 📦 Checkout code
uses: actions/checkout@v4
- name: 📦 Setup pnpm
uses: pnpm/action-setup@v2
with:
run_install: true
- name: 🏗 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- name: 📱 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 🔨 Build iOS IPA
run: |
cd apps/mobile
eas build --platform ios --profile ${{ github.event.inputs.profile || 'preview' }} --non-interactive --local --output=./build.ipa
env:
CI: true
# Optional: Upload artifact
- name: 📤 Upload IPA
uses: actions/upload-artifact@v4
with:
name: app-ios
path: apps/mobile/build.ipa
retention-days: 90
- name: Submit to App Store
if: github.event.inputs.profile == 'production'
run: |
cd apps/mobile
eas submit --platform ios --path build.ipa --non-interactive