From 59913ba214008abcd4f997370ce32c37aa5e31c3 Mon Sep 17 00:00:00 2001 From: "jonghyon.s" Date: Tue, 24 Oct 2023 12:35:58 +0900 Subject: [PATCH] ci: deploy release --- .github/workflows/publish.yaml | 3 +++ .gitignore | 4 ---- build.gradle.kts | 24 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9958cfb0a..9681184e2 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -30,6 +30,9 @@ jobs: env: SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.GPG_SECRET_KEY_ID }} + ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_SECRET_KEY }} + ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_SECRET_PASSWORD }} - name: Cleanup Gradle Cache # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. # Restoring these files from a GitHub Actions cache might cause problems for future builds. diff --git a/.gitignore b/.gitignore index de9716c16..37bd9a042 100644 --- a/.gitignore +++ b/.gitignore @@ -39,7 +39,3 @@ out/ ### NPM ### package-lock.json /node_modules/ - -### Secret ### -secring.gpg -local.properties diff --git a/build.gradle.kts b/build.gradle.kts index 5ea1d3691..b655a7a6f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,6 +11,7 @@ plugins { alias(libs.plugins.ktlint) `java-test-fixtures` `maven-publish` + signing } allprojects { @@ -70,6 +71,16 @@ allprojects { withJavadocJar() } + signing { + val signingKeyId: String? by project + val signingKey: String? by project + val signingPassword: String? by project + + useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) + + sign(publishing.publications) + } + publishing { repositories { maven { @@ -107,6 +118,19 @@ allprojects { } } + developers { + developer { + name.set("LY Corporation") + email.set("dl_oss_dev@linecorp.com") + url.set("https://engineering.linecorp.com/en/") + } + developer { + id.set("shouwn") + name.set("jonghyon.s") + email.set("jonghyon.s@linecorp.com") + } + } + scm { connection.set("scm:git@github.com:line/kotlin-jdsl.git") developerConnection.set("scm:git:ssh://github.com:line/kotlin-jdsl.git")