Skip to content

Commit

Permalink
ci: deploy release
Browse files Browse the repository at this point in the history
  • Loading branch information
shouwn committed Oct 24, 2023
1 parent 94170e2 commit 59913ba
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,3 @@ out/
### NPM ###
package-lock.json
/node_modules/

### Secret ###
secring.gpg
local.properties
24 changes: 24 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ plugins {
alias(libs.plugins.ktlint)
`java-test-fixtures`
`maven-publish`
signing
}

allprojects {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -107,6 +118,19 @@ allprojects {
}
}

developers {
developer {
name.set("LY Corporation")
email.set("[email protected]")
url.set("https://engineering.linecorp.com/en/")
}
developer {
id.set("shouwn")
name.set("jonghyon.s")
email.set("[email protected]")
}
}

scm {
connection.set("scm:[email protected]:line/kotlin-jdsl.git")
developerConnection.set("scm:git:ssh://github.com:line/kotlin-jdsl.git")
Expand Down

0 comments on commit 59913ba

Please sign in to comment.