Skip to content

Commit

Permalink
Fix modrinth and github release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed Jan 26, 2022
1 parent c29d5bd commit 79f77f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ mod_version = 4.1.0
curseforge_id = 318449
modrinth_id = K01OU20C
curseforge_versions = 1.18-Snapshot; 1.18; 1.18.1
modrinth_versions = 1.18; 1.18.1
changelog_url = https://github.com/OnyxStudios/Cardinal-Components-API/blob
release_type = release
display_name = Cardinal-Components-API
owner = OnyxStudios
#api_package = nerdhub.cardinal.components.api

# Licensing
Expand Down
4 changes: 2 additions & 2 deletions release.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ task checkGitStatus() {

githubRelease {
token "${findProperty('github_releases_token')}"
// default owner: last component of maven group
// default repo: name of the project
owner = "${project.owner}"
tagName = project.version
targetCommitish = { grgit.branch.current().name }
body = { project.getChangelogText() }
Expand Down Expand Up @@ -148,7 +148,7 @@ task modrinth (type: ModrinthUpload, dependsOn: checkGitStatus){
addFile(remapJar)
}
changelog = project.getChangelogText()
"${project.curseforge_versions}".split('; ').each {
"${project.modrinth_versions ?: project.curseforge_versions}".split('; ').each {
addGameVersion it
}
addLoader('fabric')
Expand Down

0 comments on commit 79f77f5

Please sign in to comment.