Skip to content

Commit

Permalink
fix signing on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
robfletcher committed Feb 7, 2021
1 parent dc316f6 commit c017404
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@ jobs:
with:
java-version: 8
- name: Release to Sonatype
run: ./gradlew -Prelease.version=${GITHUB_REF:11} publish
run: ./gradlew -Prelease.version=${GITHUB_REF:11} publish closeAndReleaseRepository
env:
ORG_GRADLE_PROJECT_nexusUsername: ${{ secrets.NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_nexusPassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }}
- name: Publish site
run: ./gradlew :site:orchidDeploy -Prelease.useLastTag=true -Penv=prod
env:
Expand Down
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/published.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ publishing {
}

signing {
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications["nebula"])
}

Expand Down

0 comments on commit c017404

Please sign in to comment.