Skip to content

Commit

Permalink
Merge pull request #8 from highmobility/fix-ci
Browse files Browse the repository at this point in the history
Fix CI signing
  • Loading branch information
tonisives authored Oct 14, 2022
2 parents 526b043 + 689c200 commit 8aab58e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
9 changes: 4 additions & 5 deletions gradle/deploy-ossrh.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ to deploy locally
*/


apply plugin: "maven-publish"
apply plugin: 'signing'
apply plugin: 'net.researchgate.release'
Expand Down Expand Up @@ -137,10 +136,10 @@ publishing {
}

signing {
if (project.hasProperty("signing.keyId")) {
// def signingKey = findProperty("signing.keyId")
// def signingPassword = findProperty("signing.password")
// useInMemoryPgpKeys(signingKey, signingPassword)
if (project.hasProperty("signingKey")) {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.release
} else {
println 'WARNING: No property \'signingKey\' found. Artifact signing will be skipped.'
Expand Down
13 changes: 7 additions & 6 deletions gradle/deploy-process.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
- update CHANGELOG.md
- merge a pull request
- update version and create a tag. use either of these
- **with a gradle task**
- call `./gradlew :hmkit-fleet:release -Prelease.useAutomaticVersion=true` to increment minor version and push new tag to remote
- omit `useAutomaticVersion=true` to set a specific version in gradle dialog
- **manually**
- update version in `$projectRoot/gradle.properties` and push tag manually
- update version and create a tag. use either of these
- **with a gradle task**
- call `./gradlew :hmkit-fleet:release -Prelease.useAutomaticVersion=true` to increment minor version and push
new tag to remote
- omit `useAutomaticVersion=true` to set a specific version in gradle dialog
- **manually**
- update version in `$projectRoot/gradle.properties` and push tag manually
- create a release in GitHub. Package is pushed to OSSRH staging automatically.
- close and release manually in OSSRH staging.

0 comments on commit 8aab58e

Please sign in to comment.