Skip to content

Update dependency com.android.tools.build:gradle to v8.7.3 (#165) #207

Update dependency com.android.tools.build:gradle to v8.7.3 (#165)

Update dependency com.android.tools.build:gradle to v8.7.3 (#165) #207

name: AndroidX Media3 FFmpeg Decoder / Publish
on:
push:
tags:
- v*
branches:
- master
env:
NDK_VER: 26.1.10909125
jobs:
publish:
name: Publish
runs-on: ubuntu-24.04
environment: release
if: ${{ contains(github.repository_owner, 'jellyfin') || startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
submodules: recursive
- name: Setup Java
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@cc4fc85e6b35bafd578d5ffbc76a5518407e1af0 # v4.2.1
- name: Cache NDK
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: /usr/local/lib/android/sdk/ndk/${{ env.NDK_VER }}
key: ${{ runner.os }}-${{ env.NDK_VER }}
- name: Install correct NDK
run: sudo ${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager --install "ndk;${NDK_VER}"
- name: Build ffmpeg
run: ./build.sh
- name: Set JELLYFIN_VERSION
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
run: echo "JELLYFIN_VERSION=$(echo ${GITHUB_REF#refs/tags/v} | tr / -)" >> $GITHUB_ENV
- name: Build extension and publish library
run: ./gradlew :media3-ffmpeg-decoder:publish closeAndReleaseSonatypeStagingRepository
env:
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}