Skip to content

Commit

Permalink
add zip to releas
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Sep 9, 2024
1 parent d9b8287 commit 0f07045
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build-cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:

- name: Build self-contained binary for linux-arm64
run: dotnet publish -c Release -r linux-arm64 --self-contained true -p:PublishSingleFile=true -o ./publish/linux-arm64


- name: Zip the binaries
run: zip -r sherlog-cli-bin.zip ./publish

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -84,3 +87,13 @@ jobs:
asset_path: ./sherlog-cli/publish/linux-arm64/sherlog-cli
asset_name: sherlog-cli-linux-arm64
asset_content_type: application/octet-stream

- name: Upload Release Asset ZIP
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./sherlog-cli/sherlog-cli-bin.zip
asset_name: sherlog-cli-bin.zip
asset_content_type: application/zip

0 comments on commit 0f07045

Please sign in to comment.