forked from louisyonge/opus_android
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Lev Zakaryan
committed
Nov 6, 2024
1 parent
9d0eff2
commit 422d7b0
Showing
6 changed files
with
135 additions
and
11 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,36 @@ | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
name: Compile and publish OpusLib fork to Maven Central using gradle task | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
|
||
steps: | ||
- name: Checkout project sources | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: corretto | ||
java-version: 8 | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@v3 | ||
with: | ||
cmdline-tools-version: 8512546 | ||
packages: 'build-tools;22.0.1 platforms;android-22' | ||
|
||
- name: Setup Gradle | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: launch library publish task | ||
env: | ||
SIMLA_MOBILE_APPS_EMAIL: ${{ secrets.SIMLA_MOBILE_APPS_EMAIL }} | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | ||
run: ./gradlew :opuslib:publishReleasePublicationToMainRepository --stacktrace |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
def versionName = "1.0.2" | ||
|
||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
groupId = 'com.simla.android.opuslib' | ||
version = versionName | ||
|
||
afterEvaluate { | ||
from configurations.archives | ||
} | ||
artifactId = project.name | ||
|
||
pom.withXml { | ||
def root = asNode() | ||
|
||
// Project name | ||
root.appendNode('name', 'OpusLib') | ||
|
||
// Project description | ||
root.appendNode('description', 'Re-publishing of OpusLib with no additional functionality.') | ||
|
||
// License information | ||
def licenses = root.appendNode('licenses') | ||
def license = licenses.appendNode('license') | ||
license.appendNode('name', 'The Apache License, Version 2.0') | ||
license.appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.txt') | ||
|
||
// Developer information | ||
def developers = root.appendNode('developers') | ||
def developer = developers.appendNode('developer') | ||
developer.appendNode('id', 'SimlaTech') | ||
developer.appendNode('name', 'Simla Mobile Dev Team') | ||
developer.appendNode('email', System.getenv("SIMLA_TECH_EMAIL")) | ||
|
||
// SCM (Source Control Management) information | ||
def scm = root.appendNode('scm') | ||
scm.appendNode('url', 'https://github.com/simla-tech/opus_android') | ||
scm.appendNode('connection', 'scm:git:git://github.com/simla-tech/opus_android.git') | ||
scm.appendNode('developerConnection', 'scm:git:ssh://github.com/simla-tech/opus_android.git') | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
name = "main" | ||
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
credentials { | ||
username = System.getenv("OSSRH_USERNAME") | ||
password = System.getenv("OSSRH_PASSWORD") | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
//def signingKeyId = findProperty("signingKeyId") ?: System.getenv("SIGNING_KEY_ID") | ||
//def signingKey = findProperty("signingKey") ?: System.getenv("SIGNING_KEY") | ||
//def signingPassword = findProperty("signingKeyPassword") ?: System.getenv("SIGNING_KEY_PASSWORD") | ||
//useInMemoryPgpKeys(/*signingKeyId,*/ signingKey, signingPassword) | ||
sign configurations.archives | ||
} |
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 +1 @@ | ||
include ':opuslib', ':oplayer',':sample1' | ||
include ':opuslib' |