Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.

Commit 7480c5b

Browse files
committed
Create release on build
1 parent 151592a commit 7480c5b

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
- name: Validate Gradle wrapper
2020
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
2121
- name: Build with Gradle
22-
run: gradle build
22+
run: gradle shadowJar
2323
- name: Create Release
24-
id: create_release
2524
uses: actions/create-release@v1
25+
id: create_release
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
with:
2929
tag_name: ${{ github.ref }}
30-
release_name: GGAddition ${{ github.ref }}
30+
release_name: Tesseract ${{ github.ref }}
3131
draft: false
3232
prerelease: true
3333
- name: Upload Release Asset
@@ -36,7 +36,7 @@ jobs:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
with:
3838
upload_url: ${{ steps.create_release.outputs.upload_url }}
39-
asset_path: build/libs
39+
asset_path: build/libs/tesseract.jar
4040
asset_name: tesseract.jar
4141
asset_content_type: application/java-archive
4242
- name: Cleanup Gradle Cache

build.gradle.kts

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
*/
2424

2525
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
26-
import proguard.gradle.ProGuardTask
2726

2827
buildscript {
2928
dependencies {
@@ -37,7 +36,7 @@ plugins {
3736
id("edu.sc.seis.launch4j") version "2.5.0"
3837
kotlin("jvm") version "1.5.30"
3938
`maven-publish`
40-
signing
39+
/*signing*/
4140
}
4241

4342
repositories {
@@ -103,22 +102,17 @@ tasks {
103102
into("build/libs/libs")
104103
}
105104

106-
register<ProGuardTask>("proguard") {
107-
dependsOn("shadowJar")
108-
configuration("../proguard.conf")
109-
injars(shadowJar.get().archivePath)
110-
outjars("build/libs/${project.name}.jar")
111-
libraryjars("C:\\Program Files\\Java\\jdk-16.0.1\\jmods")
112-
libraryjars(configurations.default)
113-
}
105+
shadowJar {
106+
archiveName = "tesseract.jar"
114107

115-
shadowJar { manifest { attributes["Main-Class"] = "com.valaphee.tesseract.MainKt" } }
108+
manifest { attributes["Main-Class"] = "com.valaphee.tesseract.MainKt" }
109+
}
116110
}
117111

118-
signing {
112+
/*signing {
119113
useGpgCmd()
120114
sign(publishing.publications)
121-
}
115+
}*/
122116

123117
publishing {
124118
publications {

0 commit comments

Comments
 (0)