-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
127 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish to Maven Central | ||
on: | ||
release: | ||
types: [ released ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
|
||
- name: Setup the environment | ||
run: | | ||
sudo pip3 install meson==0.58.2 | ||
sudo apt-get install nasm ninja-build | ||
- name: Assembling the ffmpeg-android-maker | ||
run: ffmpeg-android-maker/ffmpeg-android-maker.sh -dav1d | ||
env: | ||
ANDROID_SDK_HOME: $ANDROID_HOME | ||
|
||
- name: Building the library, preparing sources and docs | ||
run: ./gradlew assembleRelease androidSourcesJar javadocJar | ||
|
||
- name: Pushing the library to Maven Central | ||
run: ./gradlew publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository --max-workers 1 | ||
env: | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Publish to Maven Central (SNAPSHOT) | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 11 | ||
|
||
- name: Setup the environment | ||
run: | | ||
sudo pip3 install meson==0.58.2 | ||
sudo apt-get install nasm ninja-build | ||
- name: Assembling the ffmpeg-android-maker | ||
run: ffmpeg-android-maker/ffmpeg-android-maker.sh -dav1d | ||
env: | ||
ANDROID_SDK_HOME: $ANDROID_HOME | ||
|
||
- name: Building the library, preparing sources and docs | ||
run: ./gradlew assembleRelease androidSourcesJar javadocJar | ||
|
||
- name: Pushing the library to Maven Central (SNAPSHOT) | ||
run: ./gradlew publishReleasePublicationToSonatypeRepository --max-workers 1 | ||
env: | ||
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | ||
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | ||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }} | ||
VERSION_SUFFIX: -SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,26 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
apply plugin: 'io.github.gradle-nexus.publish-plugin' | ||
apply from: "${rootDir}/scripts/publish-root.gradle" | ||
|
||
// The gradle-nexus.publish-plugin considers the Project.version to pick the repository url (staging or snapshot) | ||
group = PUBLISH_GROUP_ID | ||
version = PUBLISH_VERSION | ||
|
||
buildscript { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
} | ||
dependencies { | ||
classpath "com.android.tools.build:gradle:7.0.0" | ||
classpath "com.android.tools.build:gradle:7.0.1" | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21" | ||
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.5.0" | ||
|
||
// NOTE: Do not place your application dependencies here; they belong | ||
// in the individual module build.gradle files | ||
classpath 'io.github.gradle-nexus:publish-plugin:1.1.0' | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} | ||
|
||
apply from: "${rootDir}/scripts/publish-root.gradle" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Sun Aug 01 14:10:35 EEST 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters