File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
109ThirdPartyCosmetics is an extension that adds support for loading ears and other third party cosmetics on java players
1110
Original file line number Diff line number Diff line change 11plugins {
22 id ' java-library'
33 id ' java'
4+ id ' com.modrinth.minotaur' version " 2.8.10"
45}
56
67group ' 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+ }
You can’t perform that action at this time.
0 commit comments