Skip to content

Commit 075ecc3

Browse files
authored
Merge pull request #6 from simplecloudapp/develop
Develop
2 parents e62c52a + 4d09a0b commit 075ecc3

3 files changed

Lines changed: 38 additions & 7 deletions

File tree

.github/workflows/release-dev.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ jobs:
4444
id: commit_hash
4545
run: echo "COMMIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
4646

47-
# - name: Publish to SimpleCloud Repository
48-
# run: ./gradlew publishMavenJavaPublicationToSimplecloudRepository
49-
# env:
50-
# COMMIT_HASH: ${{ env.COMMIT_HASH }}
51-
# SIMPLECLOUD_USERNAME: ${{ secrets.SIMPLECLOUD_USERNAME }}
52-
# SIMPLECLOUD_PASSWORD: ${{ secrets.SIMPLECLOUD_PASSWORD }}
47+
- name: Publish to Modrinth
48+
run: ./gradlew modrinth && ./gradlew modrinthSyncBody
49+
env:
50+
COMMIT_HASH: ${{ env.COMMIT_HASH }}
51+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
5352

5453
- name: Create Release
5554
id: create_release

gradle/libs.versions.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ coroutine = "1.10.1"
1111

1212
adventure = "4.18.0"
1313

14+
minotaur = "2.8.7"
15+
1416
[libraries]
1517
kotlin-jvm = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", version.ref = "kotlin" }
1618
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlin" }
@@ -40,4 +42,5 @@ adventure = ["adventure", "adventure-text-minimessage"]
4042

4143
[plugins]
4244
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
43-
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
45+
shadow = { id = "com.gradleup.shadow", version.ref = "shadow" }
46+
minotaur = { id = "com.modrinth.minotaur", version.ref = "minotaur" }

sign-paper/build.gradle.kts

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
plugins {
2+
alias(libs.plugins.minotaur)
3+
}
4+
15
dependencies {
26
api(project(":sign-shared"))
37
compileOnly(rootProject.libs.paper.api)
@@ -15,3 +19,28 @@ tasks {
1519
relocate("com.google.protobuf", "app.simplecloud.relocate.protobuf")
1620
}
1721
}
22+
23+
modrinth {
24+
token.set(project.findProperty("modrinthToken") as String? ?: System.getenv("MODRINTH_TOKEN"))
25+
projectId.set("M2XJERK4")
26+
versionNumber.set(rootProject.version.toString())
27+
versionType.set("beta")
28+
uploadFile.set(tasks.shadowJar)
29+
gameVersions.addAll(
30+
"1.20",
31+
"1.20.1",
32+
"1.20.2",
33+
"1.20.3",
34+
"1.20.4",
35+
"1.20.5",
36+
"1.20.6",
37+
"1.21",
38+
"1.21.1",
39+
"1.21.2",
40+
"1.21.3",
41+
"1.21.4"
42+
)
43+
loaders.add("paper")
44+
changelog.set("https://docs.simplecloud.app/changelog")
45+
syncBodyFrom.set(rootProject.file("README.md").readText())
46+
}

0 commit comments

Comments
 (0)