-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (48 loc) · 1.63 KB
/
deploy-android.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
name: Trigger Expo Build (Android)
on:
push:
tags:
- '**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: production
permissions:
contents: read
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}
packager: bun
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Set eas.json file - EXPO_PUBLIC_SETLISTFM_API_KEY
uses: jossef/[email protected]
with:
file: eas.json
field: build.production.env.EXPO_PUBLIC_SETLISTFM_API_KEY
value: ${{ secrets.EXPO_PUBLIC_SETLISTFM_API_KEY }}
- name: Set eas.json file - EXPO_PUBLIC_SPOTIFY_API_KEY
uses: jossef/[email protected]
with:
file: eas.json
field: build.production.env.EXPO_PUBLIC_SPOTIFY_API_KEY
value: ${{ secrets.EXPO_PUBLIC_SPOTIFY_API_KEY }}
- name: Set eas.json file - EXPO_PUBLIC_APPLE_MUSIC_DEV_TOKEN_ENDPOINT
uses: jossef/[email protected]
with:
file: eas.json
field: build.production.env.EXPO_PUBLIC_APPLE_MUSIC_DEV_TOKEN_ENDPOINT
value: ${{ secrets.EXPO_PUBLIC_APPLE_MUSIC_DEV_TOKEN_ENDPOINT }}
- name: Build app
run: eas build -p android --non-interactive --no-wait -m="GitHub Actions - Run $GITHUB_RUN_ID"