-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 1.38 KB
/
Copy pathandroid.yml
File metadata and controls
61 lines (53 loc) · 1.38 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
name: Android build
on:
push:
paths:
- 'android/**'
- 'index.html'
- 'catalog.json'
- 'sw.js'
- 'vendor/**'
- 'icons/**'
- '.github/workflows/android.yml'
pull_request:
paths:
- 'android/**'
- 'index.html'
- 'catalog.json'
- 'sw.js'
- 'vendor/**'
- 'icons/**'
- '.github/workflows/android.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0 # full history so the version task can count commits
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '17'
- name: Set up Android SDK
uses: android-actions/setup-android@v4
- name: Build debug APK
working-directory: android
run: ./gradlew assembleDebug --stacktrace
- name: Name the debug APK
id: apk
run: |
version="$(cat VERSION)"
out="ferd-${version}-debug.apk"
cp android/app/build/outputs/apk/debug/app-debug.apk "$out"
echo "path=$out" >> "$GITHUB_OUTPUT"
- name: Upload APK
uses: actions/upload-artifact@v7
with:
name: ferd-debug-apk
path: ${{ steps.apk.outputs.path }}
if-no-files-found: error