Skip to content

Commit

Permalink
add same for android
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Feb 16, 2024
1 parent 778083d commit 8d9025a
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 4 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build-submit-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
name: Build and Submit iOS

on:
push:
branches:
- hailey/use-eas-version-code
workflow_dispatch:
inputs:
profile:
type: choice
description: Build profile to use
options:
- production

jobs:
build:
name: Build and Submit
runs-on: ubuntu-latest
steps:
- name: Check for EXPO_TOKEN
run: >
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
exit 1
fi
- name: ⬇️ Checkout
uses: actions/checkout@v4

- name: 🔧 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn

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

- name: ⛏️ Setup EAS local builds
run: yarn global add eas-cli-local-build-plugin

- name: ⚙️ Install dependencies
run: yarn install

- name: 🏗️ EAS Build
run: yarn use-build-number eas build -p android --profile production --local --output build.aab --non-interactive
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
---
name: Deploy Nightly Testflight Release
name: Build and Submit iOS

on:
push:
branches:
- hailey/use-eas-version-code
workflow_dispatch:
inputs:
profile:
type: choice
description: Build profile to use
options:
- production

jobs:
build:
name: Deploy Nightly Testflight Release
name: Build and Submit
runs-on: macos-14
steps:
- name: Check for EXPO_TOKEN
Expand Down Expand Up @@ -52,7 +59,7 @@ jobs:
path: ./ios/Pods
# We'll use the yarn.lock for our hash since we don't yet have a Podfile.lock. Pod versions will not
# change unless the yarn version changes as well.
key: ${{ runner.os }}-pods-${{ hashFiles('./yarn.lock') }}
key: ${{ runner.os }}-pods-${{ hashFiles('yarn.lock') }}

- name: 🏗️ EAS Build
run: yarn use-build-number eas build -p ios --profile github --local --output build.ipa --non-interactive
run: yarn use-build-number eas build -p ios --profile production --local --output build.ipa --non-interactive

0 comments on commit 8d9025a

Please sign in to comment.