From 774150fbf31e035cf1df0a34560eabac68636f68 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Sat, 22 Jun 2024 14:12:20 +0200 Subject: [PATCH] Fix broken CF publication --- .github/workflows/ci.yml | 2 +- build.gradle | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 024329a..1fc8c48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,7 +60,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') env: CURSEFORGE_KEY_SECRET: ${{ secrets.CURSEFORGE_KEY_SECRET }} - run: ./gradlew curseforge + run: ./gradlew publishCurseForge - name: 'Deploy to Modrinth' if: startsWith(github.ref, 'refs/tags/') env: diff --git a/build.gradle b/build.gradle index e5c1bce..96031e9 100644 --- a/build.gradle +++ b/build.gradle @@ -195,10 +195,9 @@ task publishCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) def projectId = "290404" // my project url is http://minecraft.curseforge.com/mc-mods/290404/ def mainFile = upload(projectId, jar) + mainFile.releaseType = 'release' mainFile.changelogType = "text" - if (new File("resources/changelog/${project.version}.txt").exists()) { - mainFile.changelog = file("resources/changelog/${project.version}.txt") - } + mainFile.changelog = file("resources/changelog/${project.minecraft_version}-${project.version}.txt") mainFile.addGameVersion(project.minecraft_version) mainFile.addModLoader("NeoForge")