Skip to content

Commit af99b70

Browse files
committed
Edits CI.
1 parent 5edcd39 commit af99b70

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/gradle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
distribution: 'temurin'
2727
- name: Grant execute permission for gradlew
2828
run: chmod +x gradlew
29-
- name: Builds all files.
29+
- name: Build all file.
3030
run: ./gradlew build --stacktrace
3131
- name: Publish to Modrinth
3232
run: ./gradlew modrinthPublish --stacktrace

build.gradle.kts

+2-7
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,6 @@ fun Project.legacy() = also {
208208
}
209209
fun Project.modrinthPublish(depend: Jar, additionalJar: List<Jar>, loadersList: List<String>, versionList: List<String>, requiredDependency: List<String>) {
210210
apply(plugin = "com.modrinth.minotaur")
211-
tasks.modrinth {
212-
dependsOn(
213-
depend
214-
)
215-
}
216211
modrinth {
217212
token = System.getenv("MODRINTH_API_TOKEN")
218213
projectId = "betterhud2"
@@ -463,11 +458,11 @@ hangarPublish {
463458
changelog = System.getenv("COMMIT_MESSAGE")
464459
platforms {
465460
register(Platforms.PAPER) {
466-
jar = pluginJar.archiveFile
461+
jar = file("build/libs/${project.name}-${project.version}-bukkit.jar")
467462
platformVersions = supportedMinecraftVersions
468463
}
469464
register(Platforms.VELOCITY) {
470-
jar = velocityJar.archiveFile
465+
jar = file("build/libs/${project.name}-${project.version}-velocity.jar")
471466
platformVersions = supportedVelocityVersions
472467
}
473468
}

0 commit comments

Comments
 (0)