Skip to content

Commit

Permalink
add mobile prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurin-Notemann committed Dec 10, 2024
1 parent f309286 commit f19a6a0
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions .github/workflows/mobile-app-appstore.yml
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

0 comments on commit f19a6a0

Please sign in to comment.