Skip to content

Commit

Permalink
build: Add iOS and android builds to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed May 5, 2024
1 parent 2ed134e commit 02ef4bf
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Android App Release Build

on:
push:
tags:
- 'android/v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Setup Android SDK
uses: android-actions/setup-android@v3

- name: Setup Expo
uses: expo/expo-github-action@v8
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Build Android app
run: eas build --platform android --local --output ${{ github.workspace }}/app-release.aab

- name: Upload AAB artifact
uses: actions/upload-artifact@v4
with:
name: hoarder-android
path: ${{ github.workspace }}/app-release.aab
32 changes: 32 additions & 0 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: iOS App Release Build

on:
push:
tags:
- 'ios/v[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: macos-latest
steps:
- name: Setup repo
uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Setup Expo
uses: expo/expo-github-action@v8
with:
expo-version: latest
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Build iOS app
run: eas build --platform ios --local --non-interactive --output ${{ github.workspace }}/app-release.ipa

- name: Upload IPA artifact
uses: actions/upload-artifact@v4
with:
name: hoarder-ios
path: ${{ github.workspace }}/app-release.ipa

0 comments on commit 02ef4bf

Please sign in to comment.