Fix Modrinth publishing

This commit is contained in:
thedarkcolour 2024-09-30 16:32:13 -07:00
parent fceaedf95f
commit 18cae30b6d
No known key found for this signature in database
GPG Key ID: 86B37B3575FD5976
2 changed files with 5 additions and 2 deletions

View File

@ -29,6 +29,6 @@ jobs:
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
- name: Upload to Modrinth
run: ./gradlew publishModrinth
run: ./gradlew modrinth
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}

View File

@ -242,10 +242,13 @@ if (System.getenv("CURSEFORGE_TOKEN")) {
modrinth {
token = System.getenv("MODRINTH_TOKEN")
projectId = "WP0FLyzv"
uploadFile = jar
versionName = "Ex Deorum ${project.version}"
gameVersions = [mc_version]
loaders = ["forge", "neoforge"]
changelog = getChangelog(project.version)
uploadFile = jar
additionalFiles.add(sourcesJar)
}
static def getChangelog(Object version) {