Skip to content

Commit

Permalink
Merge pull request #4 from FTBTeam/dev
Browse files Browse the repository at this point in the history
fix: comment out github publish CI for now, use a displayName for CF …
  • Loading branch information
desht authored Dec 4, 2023
2 parents 1d7d188 + 4144f5d commit e5ec274
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -116,26 +116,28 @@ publishMods {
modLoaders.add("neoforge")
modLoaders.add("forge")
file = project(":forge").tasks.remapJar.archiveFile
displayName = "[FORGE] FTB Filter System ${mod_version} MC ${minecraft_version}"
}

curseforge("fabric") {
from curseOptions

file = project(":fabric").tasks.remapJar.archiveFile
modLoaders.add("fabric")
file = project(":fabric").tasks.remapJar.archiveFile
displayName = "[FABRIC] FTB Filter System ${mod_version} MC ${minecraft_version}"

requires {
slug = "fabric-api"
}
}

github {
repository = "ftbteam/ftb-filter-system"
accessToken = providers.environmentVariable("GITHUB_TOKEN")
commitish = providers.environmentVariable("GITHUB_SHA").orElse("dryRun")
tagName = providers.environmentVariable("GITHUB_REF_NAME").orElse("dryRun")

// Gradle doesn't like accessing the buildApi task directly so we need to use the provider
file = project.provider { project(":common").tasks.buildApi }.flatMap { it.archiveFile }
}
// TODO uncomment this one day but will need to redo how our publishing workflow happens
// github {
// repository = "ftbteam/ftb-filter-system"
// accessToken = providers.environmentVariable("GITHUB_TOKEN")
// commitish = providers.environmentVariable("GITHUB_SHA").orElse("dryRun")
// tagName = providers.environmentVariable("GITHUB_REF_NAME").orElse("dryRun")
//
// // Gradle doesn't like accessing the buildApi task directly so we need to use the provider
// file = project.provider { project(":common").tasks.buildApi }.flatMap { it.archiveFile }
// }
}

0 comments on commit e5ec274

Please sign in to comment.