-
Notifications
You must be signed in to change notification settings - Fork 14
52 lines (44 loc) · 1.33 KB
/
build-apk.yaml
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
on:
workflow_dispatch:
push:
name: Build apk
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
- name: 🏗 Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.x
cache: pnpm
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
packager: pnpm
- name: 🏗 Setup Java 17
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
- name: 📦 Install dependencies
run: pnpm install
- name: 🚀 Build app
run: eas build --local --non-interactive --platform android --profile production
env:
EXPO_PUBLIC_API_URL: ${{ secrets.API_URL }}
EXPO_PUBLIC_STRIPE_PUBLIC_KEY: ${{ secrets.STRIPE_PUBLIC_KEY }}
EXPO_PUBLIC_POSTHOG_HOST: ${{ secrets.POSTHOG_HOST }}
EXPO_PUBLIC_POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
- name: Upload Artifact GitHub Action
uses: actions/upload-artifact@v3
with:
name: assets-for-download
path: build-*.apk