File tree Expand file tree Collapse file tree 3 files changed +1
-42
lines changed Expand file tree Collapse file tree 3 files changed +1
-42
lines changed Original file line number Diff line number Diff line change 1- # Automatically build the project and run any configured tests for every push
2- # and submitted pull request. This can help catch issues that only occur on
3- # certain platforms or Java versions, and provides a first line of defence
4- # against bad commits.
5-
61name : build
2+
73on : [
84 pull_request,
95 push
Original file line number Diff line number Diff line change 11plugins {
22 id ' fabric-loom' version ' 1.3.8' apply false
33 id ' maven-publish'
4- id " com.modrinth.minotaur" version " 2.+" apply false
54 id ' com.replaymod.preprocess' version ' 20c7ec554a'
65}
76
Original file line number Diff line number Diff line change 22apply plugin : ' fabric-loom'
33apply plugin : ' maven-publish'
44apply plugin : ' com.replaymod.preprocess'
5- apply plugin : ' com.modrinth.minotaur'
65
76
87archivesBaseName = project. archives_base_name // in central gradle.properties
@@ -109,38 +108,3 @@ jar {
109108 rename { " ${ it} _${ archivesBaseName} " }
110109 }
111110}
112-
113- // Publish to modrinth
114- modrinth {
115- // Token
116- token = System . getenv(" MODRINTH_TOKEN" )
117-
118- // Project ID
119- projectId = " opt-carpet-addition"
120-
121- // Version
122- if (project. mod_version. contains(" alpha" )) {
123- versionType = " alpha"
124- } else if (project. mod_version. contains(" beta" )) {
125- versionType = " beta"
126- } else {
127- versionType = " release"
128- }
129- gameVersions = [" 1.17" , " 1.17.1" ] // Must be an array, even with only one version
130- versionNumber = project. mod_version
131- versionName = " v" + project. mod_version + " For Minecraft 1.17"
132-
133- // Upload
134- uploadFile = remapJar
135-
136- // Loader
137- loaders = [" fabric" ] // Must also be an array - no need to specify this if you're using Loom or ForgeGradle
138-
139- // Dependencies
140- dependencies {
141- required. project " fabric-api"
142- }
143-
144- // ChangeLogs
145- changelog = " Got full change logs in [GitHub](https://github.com/OptiJava/OptCarpetAddition/releases)."
146- }
You can’t perform that action at this time.
0 commit comments