Skip to content

Commit

Permalink
INFRA-4255 Exclude redundant zip archive output
Browse files Browse the repository at this point in the history
  • Loading branch information
yuryyas committed Feb 21, 2025
1 parent 496559c commit 4d26e50
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
restore-keys: 11-

- name: Build artifacts
run: ./gradlew clean server:distZip types:build -x types:test -x server:test -x client-html:test -PreleaseVersion=${{steps.format.outputs.value}}
run: ./gradlew clean server:build types:build -x types:test -x server:test -x client-html:test -PreleaseVersion=${{steps.format.outputs.value}}

- name: Release
uses: ncipollo/release-action@v1
Expand Down
16 changes: 11 additions & 5 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,16 @@ task addVersion {
}
}

distZip.dependsOn(copyWebApp,addVersion)
distZip.enabled = false;

task createChecksums(dependsOn: distZip) {
inputs.files(distZip.outputs.files)
distTar {
compression = Compression.GZIP
}

distTar.dependsOn(copyWebApp,addVersion)

task createChecksums(dependsOn: distTar) {
inputs.files(distTar.outputs.files)
outputs.files(inputs.files.collect({ it.path + ".sha256"}))
doLast {
inputs.files.each { f ->
Expand All @@ -289,7 +295,7 @@ task createChecksums(dependsOn: distZip) {
}
}
}
distZip.finalizedBy(createChecksums)
distTar.finalizedBy(createChecksums)

distributions {
main {
Expand Down Expand Up @@ -338,7 +344,7 @@ publishing {
}
}
executables(MavenPublication) {
artifact(distZip) {
artifact(distTar) {
classifier "executable"
extension "zip"
}
Expand Down

0 comments on commit 4d26e50

Please sign in to comment.