-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathandroid-debug-build-release.yml
More file actions
75 lines (61 loc) · 1.82 KB
/
android-debug-build-release.yml
File metadata and controls
75 lines (61 loc) · 1.82 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Android Debug APK Attach to Release
permissions:
contents: write
on:
push:
tags: ['*']
jobs:
build-android-debug:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Use Node 22.15.0
uses: actions/setup-node@v4
with:
node-version: '22.15.0'
- name: Install root dependencies
run: npm ci
- name: Build shared packages
run: npm run build
- name: Install app dependencies
working-directory: ./apps/react-wallet
run: npm ci
- name: Set up Java 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Set up Android SDK
uses: android-actions/setup-android@v3
with:
api-level: 35
build-tools: '35.0.0'
- name: Build Android debug APK
working-directory: ./apps/react-wallet
env:
CI: true
run: npm run android:build
- name: Upload debug APK artifact
uses: actions/upload-artifact@v4
with:
name: app-debug-artifact
path: apps/react-wallet/android/app/build/outputs/apk/debug/app-debug.apk
if-no-files-found: error
create-release:
runs-on: ubuntu-latest
needs: build-android-debug
if: github.ref_type == 'tag'
steps:
- name: Download debug APK artifact
uses: actions/download-artifact@v4
with:
name: app-debug-artifact
# The downloaded artifact will be in the repository root
- name: Create Release and Upload APK
uses: softprops/action-gh-release@v2.4.1
with:
files: app-debug.apk
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}