Publish jar files to GH too

I'm not sure if I'll keep this, as it's a little redundant. We're on an
older version of the plugin, as 2.2.7 seems to fail for me.

Closes #165.
This commit is contained in:
SquidDev 2019-04-07 15:30:27 +01:00
parent 6be330ae8d
commit 4205f18f0c
1 changed files with 15 additions and 0 deletions

View File

@ -18,6 +18,7 @@
plugins {
id 'com.matthewprenger.cursegradle' version '1.0.10'
id "com.github.breadmoirai.github-release" version "2.2.4"
}
apply plugin: 'net.minecraftforge.gradle.forge'
@ -287,6 +288,20 @@ task compressJson(dependsOn: extractAnnotationsJar) {
}
}
githubRelease {
token project.hasProperty('githubApiKey') ? project.githubApiKey : ''
owner 'SquidDev-CC'
repo 'CC-Tweaked'
targetCommitish (mc_version == "1.12.2" ? "master" : mc_version)
tagName "v${mc_version}-${mod_version}"
releaseName "[${mc_version}] ${mod_version}"
body ''
prerelease false
releaseAssets.from(jar.archivePath)
}
test {
useJUnitPlatform()
testLogging {