Upload Fabric platform to Modrinth

This commit is contained in:
Camotoy 2023-03-20 13:04:53 -04:00
parent 4a20bbad88
commit 05829eeed8
No known key found for this signature in database
GPG Key ID: 7EEFB66FE798081F
2 changed files with 35 additions and 0 deletions

16
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: publish
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: build and publish
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
run: ./gradlew fabric:modrinth

View File

@ -1,5 +1,6 @@
plugins {
id("fabric-loom") version "1.0-SNAPSHOT"
id("com.modrinth.minotaur") version "2.+"
}
java {
@ -74,4 +75,22 @@ tasks {
archiveClassifier.set("")
archiveVersion.set("")
}
}
modrinth {
projectId.set("wKkoqHrH")
versionNumber.set(project.version as String + "-" + System.getenv("GITHUB_RUN_NUMBER"))
versionType.set("beta")
changelog.set("A changelog can be found at https://github.com/GeyserMC/Geyser/commits")
syncBodyFrom.set(rootProject.file("README.md").readText())
uploadFile.set(tasks.getByPath("remapJar"))
gameVersions.addAll("1.19", "1.19.1", "1.19.2", "1.19.3", "1.19.4")
loaders.add("fabric")
dependencies {
required.project("fabric-api")
}
}