Skip to content

Commit 50a1f1c

Browse files
committed
Fix broken CF publication
1 parent e460956 commit 50a1f1c

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
if: startsWith(github.ref, 'refs/tags/')
6161
env:
6262
CURSEFORGE_KEY_SECRET: ${{ secrets.CURSEFORGE_KEY_SECRET }}
63-
run: ./gradlew curseforge
63+
run: ./gradlew publishCurseForge
6464
- name: 'Deploy to Modrinth'
6565
if: startsWith(github.ref, 'refs/tags/')
6666
env:

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,9 @@ task publishCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge)
221221
def projectId = "233151" // my project url is http://minecraft.curseforge.com/mc-mods/233151/
222222

223223
def mainFile = upload(projectId, jar)
224+
mainFile.releaseType = 'release'
224225
mainFile.changelogType = "text"
225-
if (new File("resources/changelog/${project.version}.txt").exists()) {
226-
mainFile.changelog = file("resources/changelog/${project.version}.txt")
227-
}
226+
mainFile.changelog = file("resources/changelog/${project.minecraft_version}-${project.version}.txt")
228227
mainFile.addGameVersion(project.minecraft_version)
229228
mainFile.addModLoader("NeoForge")
230229

0 commit comments

Comments
 (0)