-
-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Add iOS and android builds to github actions
- Loading branch information
1 parent
2ed134e
commit 02ef4bf
Showing
2 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |