Skip to content

Commit

Permalink
Merge pull request #71 from samolego/fix/minotaur
Browse files Browse the repository at this point in the history
Update Minotaur & other loosely related changes
  • Loading branch information
samolego authored Mar 28, 2023
2 parents bd40763 + 952cf03 commit 9048e5a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
env:
CURSEFORGE_API_KEY: ${{ secrets.CURSEFORGE_API_KEY }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
CHANGELOG: ${{ github.event.release.body }}

- name: Upload GitHub release
uses: AButler/[email protected]
Expand Down
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
import com.modrinth.minotaur.TaskModrinthUpload


plugins {
id 'fabric-loom' version '1.0-SNAPSHOT'
id 'com.matthewprenger.cursegradle' version '1.4.0'
id "com.modrinth.minotaur" version "1.1.0"
id "com.modrinth.minotaur" version "2.+"
id 'maven-publish'
id 'java'
}
Expand Down Expand Up @@ -134,20 +131,23 @@ curseforge {
}
}

task modrinth(type: TaskModrinthUpload, dependsOn: remapJar) {
tasks.modrinth {
onlyIf {
ENV.MODRINTH_TOKEN
}
}

modrinth {
token = ENV.MODRINTH_TOKEN
projectId = "PfKYAJGk"
versionNumber = version
versionName = "[${project.minecraft_version}] GolfIV ${version}"
releaseType = "release"
versionType = "release"
changelog = ENV.CHANGELOG ?: "A changelog can be found at https://github.com/samolego/GolfIV/releases/tag/${version}"

uploadFile = file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")

addGameVersion("${project.minecraft_version}")
addLoader('fabric')
gameVersions = [project.minecraft_version]
loaders = ['fabric', 'quilt']
}

2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pluginManagement {
repositories {
jcenter()
mavenCentral()
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
Expand Down

0 comments on commit 9048e5a

Please sign in to comment.