forked from coral-xyz/backpack
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (81 loc) · 2.58 KB
/
app-mobile-preview.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: app-mobile preview
on:
workflow_dispatch:
inputs:
# platform:
# description: Platform to build for (all/android/ios/native/web)
# type: choice
# required: true
# default: native
# options:
# - all
# - native
# - android
# - ios
# - web
# profile:
# description: EAS build profile (development/production/preview)
# type: choice
# required: true
# default: development
# options:
# - development
# - production
# - preview
app_env:
description: APP_ENV (development/production)
type: choice
required: true
default: development
options:
- development
- production
# pull_request:
# paths:
# - "packages/app-mobile/**"
# types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
mobile:
name: Preview App
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
# Checkout must come before a custom action
- name: 🏗 Setup repository
uses: actions/checkout@v3
- name: 🏗 Setup monorepo
uses: ./.github/actions/app-mobile-monorepo-setup
with:
expo-token: ${{ secrets.EXPO_TOKEN }}
- name: 👷 Build modules
env:
BACKPACK_CONFIG_VERSION: "${{ env.RELEASE_PREFIX }}-latest-beta-${{ github.run_number }}"
BACKPACK_CONFIG_LOG_LEVEL: "info"
BACKPACK_FEATURE_LIGHT_MODE: "true"
BACKPACK_FEATURE_POP_MODE: "true"
BACKPACK_FEATURE_XNFT: "true"
# CI!=true so that build warnings aren't treated like errors (for now)
CI: ""
run: yarn build:mobile
- name: 🚀 Publish preview
working-directory: packages/app-mobile
env:
APP_ENV: "production"
COMMIT_HASH: ${{ github.sha }}
run: eas update --branch preview --message=${{ github.sha }}
# - name: 💬 Comment preview
# uses: expo/expo-github-action/preview-comment@v7
# with:
# comment: false
# project: packages/app-mobile
# channel: pr-${{ github.event.number }}
# - name: 💬 Comment in Slack
# uses: slackapi/[email protected]
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_TOKEN }}
# with:
# channel-id: mobile-app
# slack-message: 'New deployment is ready!\n- Preview: ${{ steps.preview.outputs.projectQR }}'