Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Build and Pubish App #4

Build and Pubish App

Build and Pubish App #4

Workflow file for this run

name: Build App
on:
workflow_dispatch:
inputs:
os:
type: choice
description: OS to build on. Ubuntu is faster, MacOS supports iOS builds, Windows is unsupported
options:
- macos-14
- ubuntu-latest
platform:
type: choice
description: Platform to build for
options:
- android
- ios
profile:
type: choice
description: Build profile to use
options:
- development
- preview
- production
jobs:
build:
runs-on: ${{ github.event.inputs.os }}
strategy:
matrix:
node: [16.x]
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 20
cache: npm
- name: 🏗 Setup Expo and EAS
uses: expo/expo-github-action@v7
with:
token: ${{ secrets.EXPO_TOKEN }}
expo-version: latest
eas-version: latest
- name: 🏗 Setup EAS local builds
run: npm i -g eas-cli-local-build-plugin
- name: 📦 Install dependencies
run: npm i
- name: 👷 Build app
run: |
eas build --local \
--non-interactive \
--output=./app-build \
--platform=${{ github.event.inputs.platform }} \
--profile=${{ github.event.inputs.profile }}
- name: 📱 Upload binary
uses: actions/upload-artifact@v2
with:
name: app-${{ github.event.inputs.platform }}
path: app-build