Skip to content

Commit

Permalink
Build binaries for release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
harryzcy committed Nov 11, 2023
1 parent 4ff50f8 commit 24f79d7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4

- uses: release-drafter/release-drafter@v5
id: release_drafter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish Release
uses: actions/github-script@v6
with:
Expand All @@ -29,3 +31,14 @@ jobs:
name: 'Release ${{ github.ref_name }}',
draft: context.eventName != 'push'
});
- name: Build binaries
run: |
make build
tar -C .. -czf mailbox-darwin-amd64.tar.gz bin
- name: Upload binaries to Release
uses: shogo82148/actions-upload-release-asset@v1
with:
upload_url: ${{ steps.release_drafter.outputs.upload_url }}
asset_path: mailbox-darwin-amd64.tar.gz bin

0 comments on commit 24f79d7

Please sign in to comment.