-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 903 Bytes
/
build.yml
File metadata and controls
40 lines (31 loc) · 903 Bytes
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
name: build
on:
push:
jobs:
build-debug:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup java 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: '17'
- name: Install dependencies
run: npm i
- name: Build frontend
run: npm run build
- name: Create android build directory
run: npx cap add android && npx cap update && npx cap copy
- name: Build apk
working-directory: ./android/
run: ./gradlew build
- name: Rename apk
run: cp ./android/app/build/outputs/apk/debug/app-debug.apk turn2green.apk
- name: Upload debug apk
uses: actions/upload-artifact@v3
with:
name: turn2green-debug-apk
path: ./turn2green.apk
if-no-files-found: error