Skip to content

build: bump version to 0.4.1 #11

build: bump version to 0.4.1

build: bump version to 0.4.1 #11

Workflow file for this run

name: Publish
on:
push:
tags:
- v*
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
environment: release
if: ${{ contains(github.repository_owner, 'jarnedemeulemeester') || startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Symlink SDK
working-directory: ./buildscripts
run: |
mkdir sdk
ln -s ${ANDROID_HOME} ./sdk/android-sdk-linux
- name: Download dependencies
working-directory: ./buildscripts
run: ./download.sh
- name: Apply patches
working-directory: ./buildscripts
run: ./patch.sh
- name: Build
working-directory: ./buildscripts
run: ./build.sh
- name: Publish to MavenCentral
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository
env:
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
- name: Create release
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
./libmpv/build/outputs/aar/libmpv-release.aar