Skip to content

Commit 3d5cb51

Browse files
committed
I: gzip artifacts to release
1 parent 1a515d8 commit 3d5cb51

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,16 @@ jobs: {
3232
"name": "Figure out the /opt/python directory from the tar file",
3333
"run": "./ci/packing_release_tar.sh release-${{ matrix.version }}-${{ matrix.architecture }}.tar",
3434
},
35+
{
36+
"name": "Gzip to save space",
37+
"run": "apt-get install gzip -y && gzip -9 release-${{ matrix.version }}-${{ matrix.architecture }}.tar",
38+
},
3539
{
3640
"name": "Release the tar file to artifacts",
3741
"uses": "actions/upload-artifact@v3",
3842
"with": {
39-
"name": "release-${{ matrix.version }}-${{ matrix.architecture }}.tar",
40-
"path": "build/release-${{ matrix.version }}-${{ matrix.architecture }}.tar",
43+
"name": "release-${{ matrix.version }}-${{ matrix.architecture }}.tar.gz",
44+
"path": "build/release-${{ matrix.version }}-${{ matrix.architecture }}.tar.gz",
4145
},
4246
},
4347
],
@@ -72,14 +76,14 @@ jobs: {
7276
"run": "echo ::set-env name=TAG_NAME::$(cat .release_tag)",
7377
"env": {
7478
"ACTIONS_ALLOW_UNSECURE_COMMANDS": "true",
75-
},
79+
},
7680
},
7781
{
7882
"name": "Create GitHub release",
7983
"uses": ncipollo/release-action@v1,
8084
"with": {
8185
"tag": "${{ env.TAG_NAME }}",
82-
"artifacts": "artifacts/*.tar",
86+
"artifacts": "artifacts/*/*.tar.gz",
8387
},
8488
"env": {
8589
"GITHUB_TOKEN": "${{ secrets.GITHUB_TOKEN }}",

0 commit comments

Comments
 (0)