From 6d63d97c5ba930184812e5f835b84a0a5def7ad7 Mon Sep 17 00:00:00 2001 From: Michael Hillcox Date: Fri, 25 Oct 2024 13:12:15 +0100 Subject: [PATCH] fix: github releases --- build.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index c4b28cc..7df2f01 100644 --- a/build.gradle +++ b/build.gradle @@ -85,7 +85,7 @@ publishMods { version = mod_version // TODO: Migrate to something else - def tag = providers.environmentVariable("TAG").getOrElse("release") + def tag = providers.environmentVariable("GITHUB_REF_NAME").getOrElse("release") type = tag.contains("-beta") ? BETA : (tag.contains("-alpha") ? ALPHA : STABLE) def createOptions = (String projectName) -> { @@ -124,7 +124,7 @@ publishMods { additionalFiles.from project.provider { project(":fabric").tasks.remapJar }.flatMap { it.archiveFile } repository = "ftbteam/ftb-materials" accessToken = providers.environmentVariable("GITHUB_TOKEN") - commitish = providers.environmentVariable("GITHUB_REF").getOrElse("main") - tagName = tag + commitish = providers.environmentVariable("GITHUB_SHA").orElse("dryRun") + tagName = providers.environmentVariable("GITHUB_REF_NAME").orElse("dryRun") } }