cf publish
This commit is contained in:
parent
30e51cde58
commit
42a03fc561
|
@ -23,4 +23,6 @@ build_test:
|
|||
modrinth:
|
||||
stage: deploy
|
||||
when: manual
|
||||
script: gradle --build-cache publishModrinth
|
||||
script:
|
||||
- gradle --build-cache publishModrinth
|
||||
- gradle --build-cache curseforge
|
||||
|
|
20
build.gradle
20
build.gradle
|
@ -2,6 +2,7 @@ plugins {
|
|||
id 'fabric-loom' version '0.5-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
id "com.modrinth.minotaur" version "1.1.0"
|
||||
id "com.matthewprenger.cursegradle" version "1.4.0"
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
|
@ -71,3 +72,22 @@ task publishModrinth (type: TaskModrinthUpload){
|
|||
tasks.publishModrinth.dependsOn(sourcesJar)
|
||||
}
|
||||
}
|
||||
|
||||
curseforge {
|
||||
apiKey = System.getenv("CURSEFORGE_API_TOKEN") == null ? "###" : System.getenv("CURSEFORGE_API_TOKEN")
|
||||
project {
|
||||
id = "411386"
|
||||
releaseType = 'release'
|
||||
addGameVersion "Fabric"
|
||||
addGameVersion "${project.minecraft_version}"
|
||||
changelog = ""
|
||||
mainArtifact(file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar"))
|
||||
mainArtifact.displayName = "[${project.minecraft_version}] ${project.mod_version}"
|
||||
afterEvaluate {
|
||||
uploadTask.dependsOn(remapJar)
|
||||
}
|
||||
}
|
||||
options {
|
||||
forgeGradleIntegration = false
|
||||
}
|
||||
}
|
|
@ -2,10 +2,10 @@
|
|||
org.gradle.jvmargs=-Xmx1G
|
||||
# Fabric Properties
|
||||
# check these on https://modmuss50.me/fabric.html
|
||||
minecraft_version=1.16.4
|
||||
yarn_mappings=1.16.4+build.7
|
||||
loader_version=0.10.8
|
||||
minecraft_version=1.16.5
|
||||
yarn_mappings=1.16.5+build.3
|
||||
loader_version=0.11.1
|
||||
# Mod Properties
|
||||
mod_version=1.2
|
||||
mod_version=1.3.0
|
||||
maven_group=io.gitlab.jfronny
|
||||
archives_base_name=Slyde
|
||||
|
|
Loading…
Reference in New Issue