Skip to content

Commit

Permalink
Fix broken CF publication
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jun 22, 2024
1 parent 17f8a4c commit 53e36d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
13 changes: 6 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -242,10 +242,9 @@ task publishCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge)
def projectId = "74610" // my project url is http://minecraft.curseforge.com/mc-mods/74610/

def mainFile = upload(projectId, shadowJar)
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")

Expand All @@ -265,10 +264,10 @@ modrinth {
versionType = project.release_type
uploadFile = shadowJar
gameVersions = [ project.minecraft_version ]
changelog = ""
if (new File("resources/changelog/${project.version}.txt").exists()) {
changelog = new File("resources/changelog/${project.version}.txt").text
}
changelog = ""
if (new File("resources/changelog/${project.version}.txt").exists()) {
changelog = new File("resources/changelog/${project.version}.txt").text
}
dependencies { // A special DSL for creating dependencies
required.project "Z9DM0LJ4" // Cyclops Core
}
Expand Down

0 comments on commit 53e36d1

Please sign in to comment.