Skip to content

Commit

Permalink
Update build-mobile.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JorrinKievit committed Nov 17, 2024
1 parent fa68bcc commit c693173
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/build-mobile.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
name: build mobile app

on:
pull_request:
types: [opened, ready_for_review]
workflow_dispatch:
workflow_dispatch: # Manual trigger
inputs:
target:
description: "Choose the build target"
required: true
default: "android"
options:
- android
- ios

permissions:
contents: write
pull-requests: write

jobs:
build-android:
if: ${{ inputs.target == 'android' }} # Runs only if 'android' is selected
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -63,6 +70,7 @@ jobs:
path: ./apps/expo/android/app/build/movie-web.apk

build-ios:
if: ${{ inputs.target == 'ios' }} # Runs only if 'ios' is selected
runs-on: macos-14

steps:
Expand Down Expand Up @@ -103,7 +111,7 @@ jobs:
run: cd apps/expo && pnpm ipa

- name: Upload movie-web.ipa as artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: ipa
path: ./apps/expo/ios/build/movie-web.ipa

0 comments on commit c693173

Please sign in to comment.