Skip to content

Build and Deploy iOS #3

Build and Deploy iOS

Build and Deploy iOS #3

Workflow file for this run

name: Build iOS
on:
push:
branches: [main, integration]
pull_request:
branches: [main, integration]
workflow_dispatch: # Manual trigger
jobs:
build:
name: EAS Build
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ios]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Setup EAS CLI
run: npm install -g eas-cli
- name: Build ${{ matrix.platform }}
run: eas build --platform ${{ matrix.platform }} --profile preview --non-interactive
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
- name: Comment build status
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '✅ ${{ matrix.platform }} build complete! Download from https://expo.dev/accounts/markus-bcit/projects/bolic-app/builds'
})