diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1c1c46909f..c408406634 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/server/build.gradle b/server/build.gradle index 343b36d316..2675b62508 100644 --- a/server/build.gradle +++ b/server/build.gradle @@ -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 -> @@ -289,7 +295,7 @@ task createChecksums(dependsOn: distZip) { } } } -distZip.finalizedBy(createChecksums) +distTar.finalizedBy(createChecksums) distributions { main { @@ -338,7 +344,7 @@ publishing { } } executables(MavenPublication) { - artifact(distZip) { + artifact(distTar) { classifier "executable" extension "zip" }