mirror of
https://github.com/gotson/komga.git
synced 2026-04-14 11:00:56 +02:00
ci: add checksum to github release
This commit is contained in:
parent
e43159b30d
commit
e09fb2c0d5
3 changed files with 13 additions and 3 deletions
|
|
@ -4,9 +4,7 @@
|
|||
# 2: channel
|
||||
|
||||
# Build jar
|
||||
./gradlew copyWebDist
|
||||
./gradlew assemble
|
||||
./gradlew generateOpenApiDocs
|
||||
./gradlew copyWebDist assemble generateOpenApiDocs checksums
|
||||
|
||||
# Prepare Dockerhub release
|
||||
source "$(dirname "$0")/prepare-dockerhub.sh" $1 $2
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
import org.gradle.crypto.checksum.Checksum
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
|
|
@ -13,6 +14,8 @@ plugins {
|
|||
id("org.flywaydb.flyway") version "7.15.0"
|
||||
id("com.github.johnrengelman.processes") version "0.5.0"
|
||||
id("org.springdoc.openapi-gradle-plugin") version "1.3.3"
|
||||
id("org.gradle.crypto.checksum") version "1.4.0"
|
||||
|
||||
jacoco
|
||||
}
|
||||
|
||||
|
|
@ -143,6 +146,12 @@ tasks {
|
|||
enabled = false
|
||||
}
|
||||
|
||||
register<Checksum>("checksums") {
|
||||
group = "build"
|
||||
inputFiles.from(files(bootJar))
|
||||
appendFileNameToChecksum.set(true)
|
||||
}
|
||||
|
||||
// unpack Spring Boot's fat jar for better Docker image layering
|
||||
register<JavaExec>("unpack") {
|
||||
dependsOn(bootJar)
|
||||
|
|
|
|||
|
|
@ -70,6 +70,9 @@
|
|||
"assets": [
|
||||
{
|
||||
"path": "komga/build/libs/*.jar"
|
||||
},
|
||||
{
|
||||
"path": "komga/build/checksums/*"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue