-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.68 KB
/
update.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
name: Expo Update
on:
push:
branches:
- update
paths:
- 'src/**.ts'
- 'src/**.tsx'
workflow_dispatch:
env:
SENTRY_URL: 'https://sentry.io'
jobs:
update:
name: EAS Update
runs-on: ubuntu-latest
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
steps:
- name: 🏗 Check for EXPO_TOKEN
run: |
if [ -z "${{ secrets.SENTRY_AUTH_TOKEN }}" ]; then
echo "You must provide an SENTRY_TOKEN secret linked to this project's Sentry account. Learn more: https://docs.expo.dev/guides/using-sentry/#sign-up-for-a-sentry-account-and-create-a-project"
fi
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
echo "Access tokens: https://expo.dev/accounts/[account]/settings/access-tokens"
exit 1
fi
- name: 🏗 Checkout repository
uses: actions/checkout@v3
- name: 🏗 Set up corepack
run: corepack enable
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: 📦 Install dependencies
run: yarn install
- name: 🚀 Create update
run: eas update --auto --non-interactive --channel production --platform android
- name: 🚀 Upload Sentry sourcemaps
run: npx sentry-expo-upload-sourcemaps dist