From ce60cdc3855126594da4ecd9cc576250e5a74c76 Mon Sep 17 00:00:00 2001 From: comp500 Date: Mon, 12 Aug 2019 02:06:49 +0100 Subject: [PATCH] Automagic github release creation --- build.gradle | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index c36cbaa..35b262b 100644 --- a/build.gradle +++ b/build.gradle @@ -3,6 +3,7 @@ plugins { id 'application' id 'com.github.johnrengelman.shadow' version '5.0.0' id 'com.palantir.git-version' version '0.11.0' + id 'com.github.breadmoirai.github-release' version '2.2.9' } sourceCompatibility = 1.8 @@ -47,4 +48,23 @@ task copyJar(type: Copy) { into "build/libs/" } -build.dependsOn copyJar \ No newline at end of file +build.dependsOn copyJar + +githubRelease { + // IntelliJ u ok? + //noinspection GroovyAssignabilityCheck + owner "comp500" + //noinspection GroovyAssignabilityCheck + repo "packwiz-installer" + //noinspection GroovyAssignabilityCheck + tagName "${project.version}" + //noinspection GroovyAssignabilityCheck + releaseName "Release ${project.version}" + //noinspection GroovyAssignabilityCheck + draft true + //noinspection GroovyAssignabilityCheck + token getProperty("github.token") + releaseAssets = [jar.destinationDirectory.file("packwiz-installer.jar").get()] +} + +tasks.githubRelease.dependsOn(build) \ No newline at end of file