-
-
Notifications
You must be signed in to change notification settings - Fork 17
50 lines (41 loc) · 1.29 KB
/
build-alpha-release-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
name: Alpha Build
on:
push:
tags:
- 'v*-alpha'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: 📦 Checkout project repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 📦 Setup Node + PNPM + install deps
uses: ./.github/actions/setup-node-pnpm-install
- name: Create .env with Github Secrets
run: |
touch .env.alpha
echo EAS_PROJECT_ID=$EAS_PROJECT_ID >> .env.alpha
env:
EAS_PROJECT_ID: ${{ secrets.EAS_PROJECT_ID }}
- name: 📦 Setup Expo and EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: ⚙️ Run Prebuild
run: pnpm prebuild:alpha
shell: bash
- name: 📱 Run Android Build
run: pnpm build:alpha --non-interactive --output=alpha-${{github.ref_name}}.apk --no-wait --message "Build alpha ${{ github.ref_name }}"
shell: bash
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Create Github Release
uses: ncipollo/release-action@v1
with:
prerelease: true
artifacts: 'alpha-${{github.ref_name}}.apk'
generateReleaseNotes: true
draft: false