From f19a6a0c88eadf1589897d0be1b75a14ba7c8f8a Mon Sep 17 00:00:00 2001 From: Laurin-Notemann Date: Tue, 10 Dec 2024 22:18:35 +0100 Subject: [PATCH] add mobile prod --- .github/workflows/mobile-app-appstore.yml | 75 +++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 .github/workflows/mobile-app-appstore.yml diff --git a/.github/workflows/mobile-app-appstore.yml b/.github/workflows/mobile-app-appstore.yml new file mode 100644 index 0000000..520f482 --- /dev/null +++ b/.github/workflows/mobile-app-appstore.yml @@ -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 + + +