-
Notifications
You must be signed in to change notification settings - Fork 25
55 lines (55 loc) · 1.68 KB
/
mobile-build.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
name: Build Tlon Mobile
on:
workflow_dispatch:
inputs:
profile:
type: choice
description: Select profile
options:
- preview
- production
platform:
type: choice
description: Select platform
options:
- all
- android
- ios
jobs:
deploy:
runs-on: ubuntu-latest
name: Create mobile builds
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- name: Set up Expo and EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Setup PNPM
uses: pnpm/action-setup@v3
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Create build vars
id: vars
run: |
echo "profile=${{ inputs.profile || 'preview' }}" >> $GITHUB_OUTPUT
- name: Build for selected platforms
working-directory: ./apps/tlon-mobile
run:
eas build --profile ${{ steps.vars.outputs.profile }} --platform ${{
inputs.platform || 'all' }} --non-interactive --auto-submit
env:
EXPO_APPLE_ID: ${{ secrets.EXPO_APPLE_ID }}
EXPO_APPLE_PASSWORD: ${{ secrets.EXPO_APPLE_PASSWORD }}
NOTIFY_PROVIDER:
"${{ steps.vars.outputs.profile == 'preview' &&
'binnec-dozzod-marnus' || 'rivfur-livmet' }}"
NOTIFY_SERVICE:
"${{ steps.vars.outputs.profile == 'preview' &&
'tlon-preview-release' || 'groups-native' }}"