-
Notifications
You must be signed in to change notification settings - Fork 12
66 lines (57 loc) · 2.01 KB
/
continuous-deployment.yaml
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
64
65
66
name: Continuous Deployment
on:
workflow_dispatch:
inputs:
channel:
type: choice
description: 'Channel to deploy to. The preview channel creates an internal preview build and is available for download on Expo.dev. The production channel creates a production build and uploads this build to be released in the stores. It does not make a release in the stores yet.'
required: true
options:
- 'preview'
- 'production'
default: 'preview'
platform:
type: choice
description: 'Platform to deploy to'
required: true
options:
- 'android'
- 'ios'
- 'all'
default: 'all'
app:
type: choice
description: 'App to deploy'
required: true
options:
- 'easypid'
- 'paradym'
default: 'paradym'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Node
uses: actions/setup-node@v4
with:
node-version: 18.x
- uses: pnpm/action-setup@v4
with:
version: 9
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_PUBLISHER_ACCESS_TOKEN }}
- name: 📦 Install dependencies
run: pnpm install
- name: 🚀 Build
run: pnpm build
- name: 🚀 Build internal preview
if: ${{ github.event.inputs.channel == 'preview' }}
run: (cd apps/${{ github.event.inputs.app }} && eas build --non-interactive --platform ${{ github.event.inputs.platform }} --profile preview --no-wait)
- name: 🚀 Build and Submission to TestFlight / Alpha Track
if: ${{ github.event.inputs.channel == 'production' }}
run: (cd apps/${{ github.event.inputs.app }} && eas build --non-interactive --platform ${{ github.event.inputs.platform }} --profile production --no-wait --auto-submit)