This repository has been archived by the owner on Dec 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 127
62 lines (50 loc) · 1.64 KB
/
expo-staging.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Expo Staging
defaults:
run:
working-directory: apps/expo
on:
push:
branches:
- staging
workflow_dispatch:
concurrency:
group: staging-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
staging:
name: Deploy Staging
runs-on: ubuntu-latest
steps:
- name: Set up repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # 👈 Required to retrieve git history
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Find yarn cache
id: yarn-cache-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore cache
uses: actions/cache@v2
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --immutable
- name: Set up Expo
uses: expo/expo-github-action@v7
with:
eas-version: latest
eas-cache: true
expo-cache: true
expo-version: 4.x
token: ${{ secrets.EXPO_TOKEN }}
# - name: EAS Update
# run: NODE_OPTIONS=--max-old-space-size=5120 EXPO_DEBUG=true STAGE=staging eas update --branch staging --message "Deploy to staging"
- name: Build Android on EAS
run: STAGE=staging eas build --profile preview --platform android --non-interactive --no-wait
- name: Build iOS on EAS
run: STAGE=staging eas build --profile preview --platform ios --non-interactive --no-wait