forked from louisyonge/opus_android
-
Notifications
You must be signed in to change notification settings - Fork 0
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 b789b15
Showing
4 changed files
with
121 additions
and
4 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,30 @@ | ||
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
def versionName = "1.2.4" | ||
|
||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
groupId = 'com.simla.android.opuslib' | ||
version = versionName | ||
|
||
afterEvaluate { | ||
from configurations.archives | ||
} | ||
artifactId = project.name | ||
|
||
pom { | ||
name = 'OpusLib' | ||
description = 'Re-publishing of OpusLib with no additional functionality.' | ||
url = 'https://github.com/simla-tech/opus_android' | ||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = 'SimlaTech' | ||
name = 'Simla Mobile Dev Team' | ||
email = findProperty("simlaTechEmail") ?: System.getenv("SIMLA_TECH_EMAIL") | ||
} | ||
} | ||
scm { | ||
connection = 'scm:git:git://github.com/simla-tech/opus_android.git' | ||
developerConnection = 'scm:git:ssh://github.com/simla-tech/opus_android.git' | ||
url = 'https://github.com/simla-tech/opus_android' | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
name = "main" | ||
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
credentials { | ||
username = findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME") | ||
password = findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD") | ||
} | ||
} | ||
maven { | ||
name = 'local' | ||
url = "${findProperty("localMavenPath")}" | ||
} | ||
} | ||
} | ||
|
||
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