Skip to content

Commit

Permalink
Add GitHub Actions workflow to build Go binaries for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
synw authored Jan 24, 2025
1 parent 4a7df6b commit 8ad1980
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build Go binaries

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.17'

- name: Build Go binary
run: |
cd server
go build -o agentsmith
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: server/agentsmith
asset_name: agentsmith
asset_content_type: application/octet-stream

0 comments on commit 8ad1980

Please sign in to comment.