Skip to content

Commit 184ce5d

Browse files
committed
chore: adding workflow files.
1 parent 59db39e commit 184ce5d

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: EAS / Release / Native
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
skip_ios:
6+
description: 'Skip iOS deployment'
7+
default: false
8+
type: boolean
9+
skip_android:
10+
description: 'Skip Android deployment'
11+
default: false
12+
type: boolean
13+
14+
jobs:
15+
build:
16+
name: Install and build
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
lfs: 'true'
22+
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 18.x
26+
cache: yarn
27+
cache-dependency-path: '**/yarn.lock'
28+
29+
- name: Setup Expo and EAS
30+
uses: expo/expo-github-action@v8
31+
with:
32+
eas-version: latest
33+
token: ${{ secrets.EXPO_TOKEN }}
34+
35+
- name: Install dependencies
36+
working-directory: packages/clippy
37+
run: yarn install
38+
39+
- name: Prepare (link) iOS UserDefaults (suite) package
40+
working-directory: packages/user-defaults-suite-ios
41+
run: yarn prepare
42+
43+
- name: Build and Submit on EAS (iOS and Android)
44+
if: ${{ github.event.inputs.skip_ios != 'true' && github.event.inputs.skip_android != 'true' }}
45+
working-directory: packages/clippy
46+
run: EXPO_NO_CAPABILITY_SYNC=1 eas build --platform all --non-interactive --auto-submit
47+
48+
- name: Build and Submit on EAS (iOS)
49+
if: ${{ github.event.inputs.skip_ios != 'true' && github.event.inputs.skip_android == 'true' }}
50+
working-directory: packages/clippy
51+
run: EXPO_NO_CAPABILITY_SYNC=1 eas build --platform ios --non-interactive --auto-submit
52+
53+
- name: Build and Submit on EAS (Android)
54+
if: ${{ github.event.inputs.skip_android != 'true' && github.event.inputs.skip_ios == 'true' }}
55+
working-directory: packages/clippy
56+
run: EXPO_NO_CAPABILITY_SYNC=1 eas build --platform android --non-interactive --auto-submit

0 commit comments

Comments
 (0)