Setting the file. One moment.
Subchapter 3.5
references/workflows.mdMarkdown2 KBView on GitHub
Automate builds, submissions, and PR-preview updates with EAS Workflows. The examples below are store-release-oriented starting points.
When you need to write, edit, or validate a workflow YAML file beyond these examples, use the eas-workflows skill. For website and API-route deploy workflows (type: deploy), see the eas-hosting skill.
Deploy OTA updates for pull requests:
name: PR Preview
on:
pull_request:
types: [opened, synchronize]
jobs:
publish:
type: update
params:
branch: "pr-${{ github.event.pull_request.number }}"
message: "PR #${{ github.event.pull_request.number }}"Complete release workflow for both platforms:
name: Release
on:
push:
tags: ['v*']
jobs:
build-ios:
type: build
params:
platform: ios
profile: production
build-android:
type: build
params:
platform: android
profile: production
submit-ios:
type: submit
needs: [build-ios]
params:
platform: ios
profile: production
submit-android:
type: submit
needs: [build-android]
params:
platform: android
profile: productionTrigger builds when pushing to specific branches:
name: Build
on:
push:
branches:
- main
- release/*
jobs:
build:
type: build
params:
platform: all
profile: productionRun jobs based on conditions:
name: Conditional Release
on:
push:
branches: [main]
jobs:
check-changes:
type: run
params:
command: |
if git diff --name-only HEAD~1 | grep -q "^src/"; then
echo "has_changes=true" >> $GITHUB_OUTPUT
fi
build:
type: build
needs: [check-changes]
if: needs.check-changes.outputs.has_changes == 'true'
params:
platform: all
profile: productionworkflow_dispatch for manual production releases