Skip to content

Commit 0e7f7c2

Browse files
Fix publishing
1 parent 73abfef commit 0e7f7c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ Provider<String> branchName() {
7878
def branch = branchName().get()
7979
def baseVersion = project.maven_version
8080
def isRelease = !baseVersion.contains('-')
81-
if (!isRelease) { // Only publish releases from the main branch
81+
def isMainBranch = branch == "main"
82+
if (!isRelease || isMainBranch) { // Only publish releases from the main branch
8283
def suffixedVersion = isRelease ? baseVersion : baseVersion + "+" + System.getenv("GITHUB_RUN_NUMBER")
8384
def commitHash = latestCommitHash().get()
8485
def changelogContent = "[${commitHash}](https://github.com/ViaVersion/ViaAprilFools/commit/${commitHash}) ${latestCommitMessage().get()}"

0 commit comments

Comments
 (0)