File tree Expand file tree Collapse file tree 3 files changed +42
-6
lines changed
Expand file tree Collapse file tree 3 files changed +42
-6
lines changed Original file line number Diff line number Diff line change @@ -24,13 +24,10 @@ jobs:
2424 run : ./gradlew build
2525
2626 - name : Archive artifacts
27- # See https://github.com/actions/upload-artifact/commits
28- uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
27+ uses : GeyserMC/actions/upload-multi-artifact@master
2928 if : success()
3029 with :
31- name : GeyserConnect
32- path : build/libs/GeyserConnect.jar
33- if-no-files-found : error
30+ artifacts : build/libs/GeyserConnect.jar
3431
3532 - name : Get Version
3633 if : ${{ success() && github.repository == 'GeyserMC/GeyserConnect' && github.ref_name == 'master' }}
6259 host : ${{ secrets.DOWNLOADS_SERVER_IP }}
6360 files : |
6461 build/libs/GeyserConnect.jar
62+ changelog : ${{ steps.metadata.outputs.body }}
63+
64+ - name : Publish to Modrinth
65+ if : ${{ success() && github.repository == 'GeyserMC/GeyserConnect' && github.ref_name == 'master' }}
66+ env :
67+ CHANGELOG : ${{ steps.metadata.outputs.body }}
68+ BUILD_NUMBER : ${{ steps.metadata.outputs.tagBase }}
69+ MODRINTH_TOKEN : ${{ secrets.MODRINTH_TOKEN }}
70+ run : ./gradlew modrinth
71+
72+ - name : Notify Discord
73+ if : ${{ (success() || failure()) && github.repository == 'GeyserMC/GeyserConnect' }}
74+ uses : GeyserMC/actions/notify-discord@master
75+ with :
76+ discordWebhook : ${{ secrets.DISCORD_WEBHOOK }}
77+ status : ${{ job.status }}
78+ body : ${{ steps.metadata.outputs.body }}
Original file line number Diff line number Diff line change 55[ ![ License: MIT] ( https://img.shields.io/badge/license-MIT-blue.svg )] ( LICENSE )
66[ ![ Build Status] ( https://github.com/GeyserMC/GeyserConnect/actions/workflows/build.yml/badge.svg )] ( https://github.com/GeyserMC/GeyserConnect/actions/workflows/build.yml )
77[ ![ Discord] ( https://img.shields.io/discord/613163671870242838.svg?color=%237289da&label=discord )] ( http://discord.geysermc.org/ )
8- [ ![ HitCount] ( http://hits.dwyl.com/GeyserMC/GeyserConnect.svg )] ( http://hits.dwyl.io/GeyserMC/GeyserConnect )
98
109GeyserConnect is an easy way for Bedrock Edition clients to connect to any Java Edition servers without having to run anything.
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.connect'
@@ -54,3 +55,25 @@ java {
5455 sourceCompatibility = JavaVersion . VERSION_17
5556 targetCompatibility = JavaVersion . VERSION_17
5657}
58+
59+ tasks. getByName(" modrinth" ) {
60+ dependsOn(" modrinthSyncBody" )
61+ }
62+
63+ modrinth {
64+ token = System . getenv(" MODRINTH_TOKEN" ) ?: " "
65+ debugMode = (System . getenv(" MODRINTH_TOKEN" ) == null )
66+ projectId = " geyserconnect"
67+ def versionDisplay = " ${ project.version} -b${ System.getenv("BUILD_NUMBER")} "
68+ versionName = " GeyserConnect ${ versionDisplay} "
69+ versionNumber = versionDisplay
70+ versionType = " release"
71+ changelog = System . getenv(" CHANGELOG" ) ?: " "
72+ gameVersions. addAll([" 1.21.10" ])
73+ loaders. addAll([" geyser" ])
74+ failSilently = true
75+
76+ syncBodyFrom = file(" README.md" ). text
77+ uploadFile. set(tasks. getByPath(" jar" ))
78+ }
79+
You can’t perform that action at this time.
0 commit comments