We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f5c7ec commit cbae545Copy full SHA for cbae545
2 files changed
.github/workflows/maven.yml
@@ -1,6 +1,7 @@
1
-name: Publish to SciJava Maven
+name: Publish to SciJava Maven (Root)
2
3
on:
4
+ workflow_dispatch:
5
workflow_call:
6
inputs:
7
release:
build.gradle.kts
@@ -42,7 +42,7 @@ publishing {
42
name = "SciJava"
43
val releasesRepoUrl = "https://maven.scijava.org/content/repositories/releases"
44
val snapshotsRepoUrl = "https://maven.scijava.org/content/repositories/snapshots"
45
- url = uri(if (project.version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
+ url = if (project.hasProperty("release")) uri(releasesRepoUrl) else uri(snapshotsRepoUrl)
46
credentials {
47
username = System.getenv("MAVEN_USER")
48
password = System.getenv("MAVEN_PASS")
0 commit comments