From 3d5cb51604b0725dde847c58fb82c57bef650b53 Mon Sep 17 00:00:00 2001 From: scc Date: Tue, 3 Oct 2023 12:08:01 +0800 Subject: [PATCH] I: gzip artifacts to release --- .github/workflows/build.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0eff89..0035dde 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,12 +32,16 @@ jobs: { "name": "Figure out the /opt/python directory from the tar file", "run": "./ci/packing_release_tar.sh release-${{ matrix.version }}-${{ matrix.architecture }}.tar", }, + { + "name": "Gzip to save space", + "run": "apt-get install gzip -y && gzip -9 release-${{ matrix.version }}-${{ matrix.architecture }}.tar", + }, { "name": "Release the tar file to artifacts", "uses": "actions/upload-artifact@v3", "with": { - "name": "release-${{ matrix.version }}-${{ matrix.architecture }}.tar", - "path": "build/release-${{ matrix.version }}-${{ matrix.architecture }}.tar", + "name": "release-${{ matrix.version }}-${{ matrix.architecture }}.tar.gz", + "path": "build/release-${{ matrix.version }}-${{ matrix.architecture }}.tar.gz", }, }, ], @@ -72,14 +76,14 @@ jobs: { "run": "echo ::set-env name=TAG_NAME::$(cat .release_tag)", "env": { "ACTIONS_ALLOW_UNSECURE_COMMANDS": "true", - }, + }, }, { "name": "Create GitHub release", "uses": ncipollo/release-action@v1, "with": { "tag": "${{ env.TAG_NAME }}", - "artifacts": "artifacts/*.tar", + "artifacts": "artifacts/*/*.tar.gz", }, "env": { "GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",