Publish reborn core jar to curseforge and TR's github
This commit is contained in:
parent
66c70e7e96
commit
52357cff10
2 changed files with 31 additions and 2 deletions
|
@ -1,5 +1,32 @@
|
|||
apply plugin: "com.matthewprenger.cursegradle"
|
||||
|
||||
group = 'RebornCore'
|
||||
|
||||
minecraft {
|
||||
accessWidener = file("src/main/resources/reborncore.accesswidener")
|
||||
}
|
||||
def ENV = System.getenv()
|
||||
|
||||
curseforge {
|
||||
if (ENV.CURSEFORGE_API_KEY) {
|
||||
apiKey = ENV.CURSEFORGE_API_KEY
|
||||
}
|
||||
|
||||
project {
|
||||
id = "237903"
|
||||
changelog = "A changelog can be found at https://github.com/TechReborn/TechReborn"
|
||||
releaseType = ENV.RELEASE_CHANNEL ?: "release"
|
||||
addGameVersion "1.17.1"
|
||||
addGameVersion "Fabric"
|
||||
|
||||
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
|
||||
|
||||
afterEvaluate {
|
||||
uploadTask.dependsOn("remapJar")
|
||||
}
|
||||
}
|
||||
|
||||
options {
|
||||
forgeGradleIntegration = false
|
||||
}
|
||||
}
|
|
@ -255,7 +255,7 @@ curseforge {
|
|||
id = "233564"
|
||||
changelog = "A changelog can be found at https://github.com/TechReborn/TechReborn"
|
||||
releaseType = ENV.RELEASE_CHANNEL ?: "release"
|
||||
addGameVersion "1.17"
|
||||
addGameVersion "1.17.1" // Also update in RebornCore/build.gradle
|
||||
addGameVersion "Fabric"
|
||||
|
||||
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
|
||||
|
@ -301,9 +301,11 @@ task github(dependsOn: remapJar) {
|
|||
releaseBuilder.commitish(getBranch())
|
||||
|
||||
def ghRelease = releaseBuilder.create()
|
||||
ghRelease.uploadAsset(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"), "application/java-archive");
|
||||
ghRelease.uploadAsset(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"), "application/java-archive")
|
||||
ghRelease.uploadAsset(file("RebornCore/build/libs/RebornCore-${version}.jar"), "application/java-archive")
|
||||
}
|
||||
}
|
||||
github.dependsOn(project(":RebornCore").getTasks().getByName("remapJar"))
|
||||
|
||||
// Generate recipe JSON for similar recipes
|
||||
task compileRecipes {
|
||||
|
|
Loading…
Reference in a new issue