Skip to content

Commit

Permalink
fix: github releases
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelHillcox committed Oct 25, 2024
1 parent 0f9ed4f commit 6d63d97
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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) -> {
Expand Down Expand Up @@ -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")
}
}

0 comments on commit 6d63d97

Please sign in to comment.