Skip to content

Commit cbae545

Browse files
committed
update actions and build to fix workflow issue
1 parent 3f5c7ec commit cbae545

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/maven.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
name: Publish to SciJava Maven
1+
name: Publish to SciJava Maven (Root)
22

33
on:
4+
workflow_dispatch:
45
workflow_call:
56
inputs:
67
release:

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ publishing {
4242
name = "SciJava"
4343
val releasesRepoUrl = "https://maven.scijava.org/content/repositories/releases"
4444
val snapshotsRepoUrl = "https://maven.scijava.org/content/repositories/snapshots"
45-
url = uri(if (project.version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
45+
url = if (project.hasProperty("release")) uri(releasesRepoUrl) else uri(snapshotsRepoUrl)
4646
credentials {
4747
username = System.getenv("MAVEN_USER")
4848
password = System.getenv("MAVEN_PASS")

0 commit comments

Comments
 (0)