mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-10-22 15:51:57 +02:00
34 lines
1.0 KiB
YAML
34 lines
1.0 KiB
YAML
name: App Build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
|
|
- name: Setup Java
|
|
uses: actions/setup-java@2c7a4878f5d120bd643426d54ae1209b29cc01a3 # tag=v3
|
|
with:
|
|
distribution: temurin
|
|
java-version: 11
|
|
cache: gradle
|
|
- name: Assemble debug APKs
|
|
run: ./gradlew --no-daemon --info assembleDebug
|
|
- name: Split APK release types
|
|
run: |
|
|
mkdir -p build/jellyfin-publish
|
|
mv app/build/outputs/apk/*/*/jellyfin-android-*-libre-debug.apk build/jellyfin-publish/
|
|
mv app/build/outputs/apk/*/*/jellyfin-android-*-proprietary-debug.apk build/jellyfin-publish/
|
|
- uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3
|
|
with:
|
|
name: build-artifacts
|
|
retention-days: 14
|
|
if-no-files-found: error
|
|
path: build/jellyfin-publish
|