Skip to content

Commit

Permalink
I: gzip artifacts to release
Browse files Browse the repository at this point in the history
  • Loading branch information
25077667 committed Oct 3, 2023
1 parent 1a515d8 commit 3d5cb51
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
],
Expand Down Expand Up @@ -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 }}",
Expand Down

0 comments on commit 3d5cb51

Please sign in to comment.