Skip to content

Commit

Permalink
Edits CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
toxicity188 committed Nov 2, 2024
1 parent 5edcd39 commit af99b70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
distribution: 'temurin'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Builds all files.
- name: Build all file.
run: ./gradlew build --stacktrace
- name: Publish to Modrinth
run: ./gradlew modrinthPublish --stacktrace
Expand Down
9 changes: 2 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,6 @@ fun Project.legacy() = also {
}
fun Project.modrinthPublish(depend: Jar, additionalJar: List<Jar>, loadersList: List<String>, versionList: List<String>, requiredDependency: List<String>) {
apply(plugin = "com.modrinth.minotaur")
tasks.modrinth {
dependsOn(
depend
)
}
modrinth {
token = System.getenv("MODRINTH_API_TOKEN")
projectId = "betterhud2"
Expand Down Expand Up @@ -463,11 +458,11 @@ hangarPublish {
changelog = System.getenv("COMMIT_MESSAGE")
platforms {
register(Platforms.PAPER) {
jar = pluginJar.archiveFile
jar = file("build/libs/${project.name}-${project.version}-bukkit.jar")
platformVersions = supportedMinecraftVersions
}
register(Platforms.VELOCITY) {
jar = velocityJar.archiveFile
jar = file("build/libs/${project.name}-${project.version}-velocity.jar")
platformVersions = supportedVelocityVersions
}
}
Expand Down

0 comments on commit af99b70

Please sign in to comment.