From dfd784ec4cdc239d625334a7ffa92e63f7f0e0fb Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Fri, 1 Mar 2024 13:31:28 +0100 Subject: [PATCH] build(GitHub): Also release archive as compressed TARs The `tar` tool is more likely to be installed by default on Unix-like OSes than `unzip`, and TARs can be piped for unpacking without temporary files, so release TARs in addition to ZIPs. Signed-off-by: Sebastian Schuberth --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 76af562419eaf..46ea938dcb338 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,7 +45,7 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} run: ./gradlew --no-configuration-cache publishAndReleaseToMavenCentral - name: Build ORT Distributions - run: ./gradlew :cli:distZip :helper-cli:distZip + run: ./gradlew :cli:distTar :cli:distZip :helper-cli:distTar :helper-cli:distZip - name: Generate Release Notes run: ./gradlew -q printChangeLog > RELEASE_NOTES.md - name: Create GitHub Release @@ -53,4 +53,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release create $ORT_VERSION --notes-file RELEASE_NOTES.md \ - ./cli/build/distributions/ort-$ORT_VERSION.zip ./helper-cli/build/distributions/orth-$ORT_VERSION.zip + ./cli/build/distributions/ort-$ORT_VERSION.tgz \ + ./cli/build/distributions/ort-$ORT_VERSION.zip \ + ./helper-cli/build/distributions/orth-$ORT_VERSION.tgz \ + ./helper-cli/build/distributions/orth-$ORT_VERSION.zip