mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 13:06:30 +02:00
Automagic github release creation
This commit is contained in:
parent
b314fc8e0b
commit
ce60cdc385
22
build.gradle
22
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
|
||||
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)
|
Loading…
x
Reference in New Issue
Block a user