-
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (45 loc) · 1.56 KB
/
build-app.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 iOS App
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: macos-12
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install pnpm
run: npm install -g pnpm
- name: Setup Expo and EAS
uses: expo/expo-github-action@v8
with:
eas-version: 7.3.0
token: ${{ secrets.EXPO_TOKEN }}
- name: Install dependencies
run: |
pnpm install --no-frozen-lockfile
- name: Setup Env Variables
# grab the env vars from {secrets.GITHUB_ENV} and write them to the env file
run: |
echo "EXPO_PUBLIC_SUPABASE_URL=${{ secrets.EXPO_PUBLIC_SUPABASE_URL }}" >> .env
echo "EXPO_PUBLIC_SUPABASE_ANON_KEY=${{ secrets.EXPO_PUBLIC_SUPABASE_ANON_KEY }}" >> .env
echo "SUPABASE_URL=${{ secrets.SUPABASE_URL }}" >> .env
echo "SUPABASE_ANON_KEY=${{ secrets.SUPABASE_ANON_KEY }}" >> .env
echo "NEXT_PUBLIC_SUPABASE_URL=${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}" >> .env
echo "NEXT_PUBLIC_SUPABASE_ANON_KEY=${{ secrets.NEXT_PUBLIC_SUPABASE_ANON_KEY }}" >> .env
echo "VERCEL_URL=${{ secrets.VERCEL_URL }}" >> .env
- name: Build
run: |
pnpm build:ios:local:non-interactive
# zip the ./builds/ directory
- name: Grab Artifacts
uses: actions/upload-artifact@v2
with:
name: ios-build
path: ./builds/