Skip to content

Commit 205192b

Browse files
committed
Add modrinth release
1 parent 37b5360 commit 205192b

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ jobs:
6060
build/libs/ThirdPartyCosmetics.jar
6161
changelog: ${{ steps.metadata.outputs.body }}
6262

63+
- name: Publish to Modrinth
64+
if: ${{ success() && github.repository == 'GeyserMC/ThirdPartyCosmetics' && github.ref_name == 'master' }}
65+
env:
66+
CHANGELOG: ${{ steps.metadata.outputs.body }}
67+
BUILD_NUMBER: ${{ steps.metadata.outputs.tagBase }}
68+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
69+
run: ./gradlew modrinth
70+
6371
- name: Notify Discord
6472
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/ThirdPartyCosmetics' }}
6573
uses: GeyserMC/actions/notify-discord@master

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
66
[![Discord](https://img.shields.io/discord/613163671870242838.svg?color=%237289da&label=discord)](http://discord.geysermc.org/)
7-
[![HitCount](http://hits.dwyl.com/GeyserMC/ThirdPartyCosmetics.svg)](http://hits.dwyl.io/GeyserMC/ThirdPartyCosmetics)
8-
[![Download](https://img.shields.io/badge/download-ThirdPartyCosmetics.jar-orange)](https://geysermc.org/download#other-thirdpartycosmetics)
7+
[![Download](https://img.shields.io/badge/download-ThirdPartyCosmetics.jar-orange)](https://geysermc.org/download/?project=other-projects&thirdpartycosmetics=expanded)
98

109
ThirdPartyCosmetics is an extension that adds support for loading ears and other third party cosmetics on java players
1110

build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'java-library'
33
id 'java'
4+
id 'com.modrinth.minotaur' version "2.8.10"
45
}
56

67
group 'org.geysermc.extension.thirdpartycosmetics'
@@ -39,3 +40,24 @@ java {
3940
sourceCompatibility = JavaVersion.VERSION_17
4041
targetCompatibility = JavaVersion.VERSION_17
4142
}
43+
44+
tasks.getByName("modrinth") {
45+
dependsOn("modrinthSyncBody")
46+
}
47+
48+
modrinth {
49+
token = System.getenv("MODRINTH_TOKEN") ?: ""
50+
debugMode = (System.getenv("MODRINTH_TOKEN") == null)
51+
projectId = "thirdpartycosmetics"
52+
def versionDisplay = "${project.version}-b${System.getenv("BUILD_NUMBER")}"
53+
versionName = "ThirdPartyCosmetics ${versionDisplay}"
54+
versionNumber = versionDisplay
55+
versionType = "release"
56+
changelog = System.getenv("CHANGELOG") ?: ""
57+
gameVersions.addAll(["1.21.10"])
58+
loaders.addAll(["geyser"])
59+
failSilently = true
60+
61+
syncBodyFrom = file("README.md").text
62+
uploadFile.set(tasks.getByPath("jar"))
63+
}

0 commit comments

Comments
 (0)