forked from mihonapp/mihon
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 857 Bytes
/
main.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
name: Build
on:
push:
workflow_call:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build app
runs-on: ubuntu-24.04
steps:
- name: Clone repo
uses: actions/checkout@main
- name: Set up JDK
uses: actions/setup-java@main
with:
java-version: 17
distribution: adopt
- name: Setup Android SDK
run: |
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager "build-tools;29.0.3"
- name: Set up gradle
uses: gradle/actions/setup-gradle@main
- name: Build app
run: ./gradlew assembleDevPreview
- name: Upload a Build Artifact
uses: actions/upload-artifact@v4
with:
name: Mihon
path: app/build/outputs/apk/*