mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-11-07 17:03:00 +00:00
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:
15
build.gradle
15
build.gradle
@@ -18,6 +18,7 @@ buildscript {
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.matthewprenger.cursegradle' version '1.0.10'
|
id 'com.matthewprenger.cursegradle' version '1.0.10'
|
||||||
|
id "com.github.breadmoirai.github-release" version "2.2.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: 'net.minecraftforge.gradle.forge'
|
apply plugin: 'net.minecraftforge.gradle.forge'
|
||||||
@@ -287,6 +288,20 @@ uploadArchives {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 {
|
test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
testLogging {
|
testLogging {
|
||||||
|
|||||||
Reference in New Issue
Block a user