diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fed33f8..6358a08 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,6 +27,8 @@ jobs: ORG_GRADLE_PROJECT_githubToken: ${{ secrets.GITHUB_TOKEN }} ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }} ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }} + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} upload-pages: runs-on: ubuntu-latest diff --git a/core/build.gradle.kts b/core/build.gradle.kts index f502587..4b5af05 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -11,9 +11,10 @@ plugins { alias(libs.plugins.dokka) id("maven-publish") + id("signing") } group = "io.github.boswelja.menuprovider" -version = "1.0.2" +version = "1.0.3" android { namespace = "com.boswelja.menuprovider" @@ -66,6 +67,13 @@ detekt { basePath = rootDir.absolutePath } +signing { + val signingKey: String? by project + val signingPassword: String? by project + useInMemoryPgpKeys(signingKey, signingPassword) + sign(publishing.publications) +} + publishing { repositories { if (System.getenv("PUBLISHING") == "true") { diff --git a/material3/build.gradle.kts b/material3/build.gradle.kts index 0dce694..17d219e 100644 --- a/material3/build.gradle.kts +++ b/material3/build.gradle.kts @@ -11,10 +11,11 @@ plugins { alias(libs.plugins.dokka) id("maven-publish") + id("signing") } group = "io.github.boswelja.menuprovider" -version = "1.0.2" +version = "1.0.3" android { namespace = "com.boswelja.menuprovider.material3" @@ -66,6 +67,13 @@ detekt { basePath = rootDir.absolutePath } +signing { + val signingKey: String? by project + val signingPassword: String? by project + useInMemoryPgpKeys(signingKey, signingPassword) + sign(publishing.publications) +} + publishing { repositories { if (System.getenv("PUBLISHING") == "true") {