diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 688654e..41fae6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -87,4 +87,4 @@ jobs: discordWebhook: ${{ secrets.DISCORD_WEBHOOK }} status: ${{ job.status }} body: ${{ steps.metadata.outputs.body }} - includeDownloads: ${{ success() && github.repository == 'GeyserMC/Rainbow' && github.ref_name == 'master' }} + includeDownloads: ${{ github.ref_name == 'master' }} diff --git a/client/build.gradle.kts b/client/build.gradle.kts index 7fa829d..f490a7d 100644 --- a/client/build.gradle.kts +++ b/client/build.gradle.kts @@ -1,3 +1,5 @@ +import net.fabricmc.loom.task.RemapJarTask + plugins { id("rainbow.base-conventions") id("rainbow.publish-conventions") @@ -8,3 +10,22 @@ dependencies { implementation(project(path = ":rainbow", configuration = "namedElements")) include(project(":rainbow")) } + +tasks { + val copyJarTask = register("copyRainbowClientJar") { + group = "build" + + val remapJarTask = getByName("remapJar") + dependsOn(remapJarTask) + + from(remapJarTask.archiveFile) + rename { + "Rainbow.jar" + } + into(project.layout.buildDirectory.file("libs")) + } + + named("build") { + dependsOn(copyJarTask) + } +}