We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73abfef commit 0e7f7c2Copy full SHA for 0e7f7c2
build.gradle
@@ -78,7 +78,8 @@ Provider<String> branchName() {
78
def branch = branchName().get()
79
def baseVersion = project.maven_version
80
def isRelease = !baseVersion.contains('-')
81
-if (!isRelease) { // Only publish releases from the main branch
+def isMainBranch = branch == "main"
82
+if (!isRelease || isMainBranch) { // Only publish releases from the main branch
83
def suffixedVersion = isRelease ? baseVersion : baseVersion + "+" + System.getenv("GITHUB_RUN_NUMBER")
84
def commitHash = latestCommitHash().get()
85
def changelogContent = "[${commitHash}](https://github.com/ViaVersion/ViaAprilFools/commit/${commitHash}) ${latestCommitMessage().get()}"
0 commit comments