Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
New publishing system
Browse files Browse the repository at this point in the history
  • Loading branch information
CrypticVerse committed Mar 16, 2024
1 parent 158cfae commit 0ab4174
Show file tree
Hide file tree
Showing 14 changed files with 86 additions and 53 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@
uses: gradle/actions/setup-gradle@v3

- name: Build and Publish
run: ./gradlew clean build modrinth curseforge --stacktrace
run: ./gradlew build publishMods --stacktrace
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_URL: ${{ secrets.MAVEN_URL }}
9 changes: 2 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
This version brings bug fixes
This version brings changes

#### Forge and Fabric
##### The bug fix update lol
- Color is now fixed in Maple Forest
- Particles of maple signs now render correctly (Fix #12)
- Oak Signs drop themselves, not maple signs (Fix #12)
- Fixed hardness of maple leaves
- Bump minor version to x.x.5.0
- New publishing system
58 changes: 24 additions & 34 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import net.darkhax.curseforgegradle.TaskPublishCurseForge
plugins {
id 'fabric-loom' version '1.5.+'
id 'maven-publish'
id 'com.modrinth.minotaur' version '2.+'
id 'net.darkhax.curseforgegradle' version '1.1.18'
id 'com.diffplug.spotless' version '6.25.0'
id 'me.modmuss50.mod-publish-plugin' version '0.5.1'
id 'signing'
}

Expand Down Expand Up @@ -51,38 +49,30 @@ spotless {
}

}
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "Qs2o8KiI"
versionNumber = "fabric-${mod_version}"
versionName = "Better Biomes Fabric ${mod_name}"
versionType = "beta"
uploadFile = remapJar
gameVersions = ["1.20.4"]
loaders = ["fabric", "quilt"]
changelog = project.file("CHANGELOG.md").text
dependencies {
required.project "fabric-api"
required.project "terrablender"
required.project "notebook-api"
optional.project "rei"
publishMods {
file = remapJar.archiveFile
changelog = rootProject.file("CHANGELOG.md").text
type = BETA
displayName = "Better Biomes Fabric ${mod_name}"
modLoaders.add("fabric")
modLoaders.add("quilt")

modrinth {
accessToken = System.getenv("MODRINTH_TOKEN")
projectId = "Qs2o8KiI"
minecraftVersions.add(minecraft_version)
}
curseforge {
accessToken = System.getenv("CURSEFORGE_TOKEN")
projectId = "938715"
minecraftVersions.add(minecraft_version)
}
github {
accessToken = System.getenv("GITHUB_TOKEN")
repository = "CrypticVerse/BetterBiomes"
commitish = "2.x-1.20.4"
tagName = "fabric-${mod_name}"
}
}
task curseforge(type: TaskPublishCurseForge) {
apiToken = System.getenv("CURSEFORGE_TOKEN")

def mainFile = upload(938715, remapJar)
mainFile.releaseType = 'beta'
mainFile.displayName = "Better Biomes Fabric ${mod_name}"
mainFile.addGameVersion("1.20.4")
mainFile.addModLoader("Quilt")
mainFile.addJavaVersion("Java 17")
mainFile.changelog = project.file("CHANGELOG.md").text
mainFile.changelogType = 'markdown'
mainFile.addRequirement("fabric-api")
mainFile.addRequirement("terrablender-fabric")
mainFile.addRequirement("notebook-api")
mainFile.addOptional("roughly-enough-items")
}
loom {
accessWidenerPath = file("src/main/resources/betterbiomes.accesswidener")
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ terraform_wood_api_version=9.0.0
notebook_version=1.1.10+1.20.4

# Mod Properties
mod_version=2.1.5.0-1.20.4
mod_name=2.1.5.0
mod_version=2.1.5.1-1.20.4
mod_name=2.1.5.1
maven_group=net.crypticverse.betterbiomes
archives_base_name=betterbiomes-fabric
7 changes: 6 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/en_AU.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"item.betterbiomes.maple_pancake_stack": "Maple Pancake Stack",
"item.betterbiomes.chocolate_pancake": "Chocolate Pancake",
"item.betterbiomes.chocolate_pancake_stack": "Chocolate Pancake Stack",
"itemgroup.betterbiomes": "Better Biomes Group"
"itemgroup.betterbiomes": "Better Biomes Group",
"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}
7 changes: 6 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"item.betterbiomes.maple_pancake_stack": "Maple Pancake Stack",
"item.betterbiomes.chocolate_pancake": "Chocolate Pancake",
"item.betterbiomes.chocolate_pancake_stack": "Chocolate Pancake Stack",
"itemgroup.betterbiomes": "Better Biomes Group"
"itemgroup.betterbiomes": "Better Biomes Group",
"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}
7 changes: 6 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/en_PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"item.betterbiomes.maple_pancake_stack": "Maple Pancake Stack",
"item.betterbiomes.chocolate_pancake": "Chocolate Pancake",
"item.betterbiomes.chocolate_pancake_stack": "Chocolate Pancake Stack",
"itemgroup.betterbiomes": "Better Biomes Group"
"itemgroup.betterbiomes": "Better Biomes Group",
"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}
7 changes: 6 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/en_UD.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"item.betterbiomes.maple_pancake_stack": "Maple Pancake Stack",
"item.betterbiomes.chocolate_pancake": "Chocolate Pancake",
"item.betterbiomes.chocolate_pancake_stack": "Chocolate Pancake Stack",
"itemgroup.betterbiomes": "Better Biomes Group"
"itemgroup.betterbiomes": "Better Biomes Group",
"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}
8 changes: 7 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,11 @@
"item.betterbiomes.maple_pancake_stack": "Maple Pancake Stack",
"item.betterbiomes.chocolate_pancake": "Chocolate Pancake",
"item.betterbiomes.chocolate_pancake_stack": "Chocolate Pancake Stack",
"itemgroup.betterbiomes": "Better Biomes Group"
"itemgroup.betterbiomes": "Better Biomes Group",

"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}
7 changes: 6 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"item.betterbiomes.maple_pancake_stack": "Pila de panqueques de arce",
"item.betterbiomes.chocolate_pancake": "Tortitas de chocolate",
"item.betterbiomes.chocolate_pancake_stack": "Pila de panqueques de chocolate",
"itemgroup.betterbiomes": "Mejor Grupo de Biomas"
"itemgroup.betterbiomes": "Mejor Grupo de Biomas",
"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}
7 changes: 6 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/es_mx.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"item.betterbiomes.maple_pancake_stack": "Pila de panqueques de arce",
"item.betterbiomes.chocolate_pancake": "Tortitas de chocolate",
"item.betterbiomes.chocolate_pancake_stack": "Pila de panqueques de chocolate",
"itemgroup.betterbiomes": "Mejor Grupo de Biomas"
"itemgroup.betterbiomes": "Mejor Grupo de Biomas",
"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}
7 changes: 6 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/ru_ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"item.betterbiomes.maple_pancake_stack": "Стопка кленовых блинов",
"item.betterbiomes.chocolate_pancake": "Шоколадный блин",
"item.betterbiomes.chocolate_pancake_stack": "Стопка шоколадных блинов",
"itemgroup.betterbiomes": "Группа лучших биомов"
"itemgroup.betterbiomes": "Группа лучших биомов",
"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}
7 changes: 6 additions & 1 deletion src/main/resources/assets/betterbiomes/lang/sr_SP.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,10 @@
"item.betterbiomes.maple_pancake_stack": "Maple Pancake Stack",
"item.betterbiomes.chocolate_pancake": "Chocolate Pancake",
"item.betterbiomes.chocolate_pancake_stack": "Chocolate Pancake Stack",
"itemgroup.betterbiomes": "Better Biomes Group"
"itemgroup.betterbiomes": "Better Biomes Group",
"_comment": "For forge things",
"block.betterbiomes.maple_sign": "Maple Sign",
"creativetab.biome_group": "Better Biomes Group",
"entity.betterbiomes.mod_chest_boat": "Chest Boat",
"biome.betterbiomes.maple_forest": "Maple Forest"
}

0 comments on commit 0ab4174

Please sign in to comment.