-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f309286
commit f19a6a0
Showing
1 changed file
with
75 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,75 @@ | ||
name: Mobile App Prod to AppStore | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
working-directory: mobile-app | ||
|
||
jobs: | ||
build-testflight: | ||
name: Build and push app to Apple Testflight | ||
runs-on: macos-latest | ||
if: | | ||
github.event_name == 'workflow_dispatch' || | ||
(github.event_name == 'push' && contains(github.event.head_commit.message, 'Bump app version')) | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
- name: Setup Expo | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
expo-version: latest | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build app | ||
run: npx eas-cli build -p ios --profile production --local --non-interactive --output=./build.ipa | ||
|
||
- name: Submit to App Store | ||
run: | | ||
xcrun altool --upload-app \ | ||
--file ./build.ipa \ | ||
--type ios \ | ||
--username "${{ secrets.APPLE_ID }}" \ | ||
--password "${{ secrets.APPLE_ID_PASSWORD }}" | ||
# build-android-test: | ||
# name: Build and push app to Apple Testflight | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Checkout code | ||
# uses: actions/checkout@v4 | ||
# - name: Setup Node.js | ||
# uses: actions/setup-node@v4 | ||
# with: | ||
# node-version: "20" | ||
# - name: Setup Expo | ||
# uses: expo/expo-github-action@v8 | ||
# with: | ||
# expo-version: latest | ||
# eas-version: latest | ||
# token: ${{ secrets.EXPO_TOKEN }} | ||
# | ||
# - name: Install dependencies | ||
# run: npm ci | ||
# | ||
# - name: Build app | ||
# run: npx eas-cli build -p android --profile staging --local --non-interactive --output=./build.ipa | ||
# | ||
# - name: Submit to App Store | ||
# run: npx eas-cli submit -p android --path=./build.ipa | ||