-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (55 loc) · 1.74 KB
/
eas-build-develop.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
63
name: EAS Build Develop
on:
workflow_dispatch:
inputs:
expo-cache:
type: choice
description: 'Whether to use Expo cache'
default: true
required: false
options:
- 'true'
- 'false'
eas-cache:
type: choice
description: 'Whether to use EAS cache'
default: true
required: false
options:
- 'true'
- 'false'
eas-build-command:
description: 'EAS build command'
required: false
jobs:
build:
name: Install and build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Setup Expo
uses: expo/expo-github-action@v8
with:
expo-version: 4.x
token: ${{ secrets.EXPO_TOKEN }}
expo-cache: ${{ github.event.inputs.expo-cache }}
eas-cache: ${{ github.event.inputs.eas-cache }}
- name: Checkout spelieve-secret
uses: actions/checkout@v3
with:
repository: Ayato-kosaka/spelieve-secret
token: ${{ secrets.REPO_ACCESS_TOKEN }}
path: spelieve-secret
- run: 'mv ./spelieve-secret/spelieve-frontend/release/ENV.ts ./src'
- run: 'mv ./spelieve-secret/spelieve-frontend/release/GoogleService-Info.plist ./'
- run: 'mv ./spelieve-secret/spelieve-frontend/release/google-services.json ./'
- run: 'rm -rf spelieve-secret/'
- name: Install dependencies
run: npm ci
- name: Build on EAS
run: npx eas-cli build --profile development --platform all --non-interactive --no-wait ${{ github.event.inputs.eas-build-command }}