Skip to content

Commit

Permalink
Merge pull request #394 from 100mslive/dev
Browse files Browse the repository at this point in the history
Dev to release
  • Loading branch information
AniketSK authored Jun 19, 2023
2 parents 0f49d56 + 3062b62 commit 66ccef3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/roomkit-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
distribution: 'temurin'
cache: gradle

- name: Which version
run: echo "${{github.ref_name}}"

- name: Decrypt the artefact signing key
run: gpg --quiet --batch --yes --decrypt --passphrase="${{ secrets.ANDROID_ROOM_KIT_SONATYPE_PRIVATE_KEY_DECRYPT_PASSWORD }}" --output secrets/private.pgp secrets/private.pgp.gpg
Expand Down
11 changes: 8 additions & 3 deletions room-kit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
id 'kotlin-parcelize'
id 'androidx.navigation.safeargs.kotlin'
id 'signing'
id "org.jetbrains.dokka" version "1.5.0"
}
def getVersionName = { ->
return "$HMS_ROOM_KIT_VERSION"
Expand Down Expand Up @@ -52,7 +53,6 @@ android {
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}
Expand Down Expand Up @@ -101,6 +101,12 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
archiveFileName = "javadoc.jar"
from "build/dokka/javadoc"
archiveClassifier.set("javadoc")
}

afterEvaluate {
publishing {
publications {
Expand All @@ -111,9 +117,8 @@ afterEvaluate {
// Only sign the artefacts if this is a maven central build.
// This would only halt jitpack builds and/or make our signing keys public.
if(rootProject.properties["ossrhUsername"]) {

artifact javadocJar
signing {
sign artifacts.find{it.getClassifier() == "javadoc"}.getFile()
sign publishing.publications
}
}
Expand Down

0 comments on commit 66ccef3

Please sign in to comment.