Skip to content

Commit 3377b9a

Browse files
authored
Small fixes for actions (#14)
1 parent 6d429c3 commit 3377b9a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

build.gradle.kts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,12 @@ publishing {
118118

119119
jreleaser {
120120
signing {
121-
mode = Mode.COMMAND
122121
active = Active.ALWAYS
123122
armored = true
123+
mode = if (System.getenv("CI") != null) Mode.MEMORY else Mode.COMMAND
124+
command {
125+
executable = "/opt/homebrew/bin/gpg"
126+
}
124127
}
125128
deploy {
126129
maven {
@@ -191,3 +194,10 @@ tasks.shadowJar {
191194
tasks.jar {
192195
manifest.attributes["Main-Class"] = "tanin.ejwf.Main"
193196
}
197+
198+
// For CI validation.
199+
tasks.register("printVersion") {
200+
doLast {
201+
print("$version")
202+
}
203+
}

0 commit comments

Comments
 (0)