-
-
Notifications
You must be signed in to change notification settings - Fork 17
58 lines (48 loc) · 1.57 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
51
52
53
54
55
56
57
58
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 + Bun + install deps
uses: ./.github/actions/setup-node-bun-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: bun prebuild:alpha
shell: bash
- name: 📱 Run Android Build
run: bun build:alpha --non-interactive --output=kaguya-${{github.ref_name}}.apk --no-wait --message "Build alpha ${{ github.ref_name }}"
shell: bash
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Generate changelog
id: changelog
uses: metcalfc/[email protected]
with:
myToken: ${{ secrets.GITHUB_TOKEN }}
- name: Create Github Release
uses: softprops/action-gh-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
files: 'kaguya-${{github.ref_name}}.apk'
fail_on_unmatched_files: true
body: ${{ steps.changelog.outputs.changelog }}
prerelease: true