From 68b783ed67ae613a84be8a8beabc785797a92be7 Mon Sep 17 00:00:00 2001 From: Nick Donathan <31076657+ndonathan@users.noreply.github.com> Date: Sun, 3 Nov 2024 00:53:42 -0500 Subject: [PATCH] Add step to zip binaries and update asset upload in release workflow --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64f436a..64b849e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,13 +88,19 @@ jobs: draft: false prerelease: ${{ github.event_name == 'pull_request' }} + # Add step to zip binaries + - name: Zip Binaries + run: | + zip -r go_tasks_${{ runner.os }}.zip ./binaries + + # Modify Upload Release Assets to upload the zip file - name: Upload Release Assets uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./binaries + asset_path: ./go_tasks_${{ runner.os }}.zip asset_name: go_tasks_${{ runner.os }}.zip asset_content_type: application/zip