geforkt von Mirrors/FastAsyncWorldEdit
Release to Modrinth (#1968)
* feat: Release to Modrinth * chore: List-ify gameVersions
Dieser Commit ist enthalten in:
Ursprung
87f680683d
Commit
a32d8dcbdb
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
@ -70,3 +70,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: FastAsyncWorldEdit-Bukkit-SNAPSHOT
|
name: FastAsyncWorldEdit-Bukkit-SNAPSHOT
|
||||||
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-Bukkit-*.jar
|
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-Bukkit-*.jar
|
||||||
|
- name: Publish to Modrinth
|
||||||
|
if: ${{ runner.os == 'Linux' && env.STATUS == 'release' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}
|
||||||
|
run: ./gradlew modrinth
|
||||||
|
env:
|
||||||
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
||||||
|
@ -3,6 +3,7 @@ import io.papermc.paperweight.userdev.attribute.Obfuscation
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
|
id("com.modrinth.minotaur") version "2.+"
|
||||||
}
|
}
|
||||||
|
|
||||||
project.description = "Bukkit"
|
project.description = "Bukkit"
|
||||||
@ -187,3 +188,16 @@ tasks.named<ShadowJar>("shadowJar") {
|
|||||||
tasks.named("assemble").configure {
|
tasks.named("assemble").configure {
|
||||||
dependsOn("shadowJar")
|
dependsOn("shadowJar")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
modrinth {
|
||||||
|
token.set(System.getenv("MODRINTH_TOKEN"))
|
||||||
|
projectId.set("fastasyncworldedit")
|
||||||
|
versionName.set("${project.version}")
|
||||||
|
versionNumber.set("${project.version}")
|
||||||
|
versionType.set("release")
|
||||||
|
uploadFile.set(file("build/libs/${rootProject.name}-Bukkit-${project.version}.jar"))
|
||||||
|
gameVersions.addAll(listOf("1.19.2", "1.19.1", "1.19", "1.18.2", "1.17.1", "1.16.5"))
|
||||||
|
loaders.addAll(listOf("paper", "purpur", "spigot"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren