-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.35 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
on:
push:
branches:
- publish
jobs:
Publish:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: |
npm install
npx expo install --fix
# This step will be deprecated and removed in the future once the google play account is created.
- name: 🚀 Build Android App
run: eas build --platform android --profile $PROFILE --non-interactive
env:
PROFILE: ${{ vars.BUILD_PROFILE }}
EXPO_PUBLIC_APOLLO_CLIENT_URI: ${{ vars.EXPO_PUBLIC_APOLLO_CLIENT_URI }}
- name: 🚀 Build & Submit ios App
run: |
rm -f .easignore
cp .gitignore .easignore
echo '\npackage-lock.json' >> .easignore
eas build --platform ios --profile $PROFILE --auto-submit --non-interactive
rm .easignore
env:
PROFILE: ${{ vars.BUILD_PROFILE }}
EXPO_PUBLIC_APOLLO_CLIENT_URI: ${{ vars.EXPO_PUBLIC_APOLLO_CLIENT_URI }}