Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedvaziry committed Apr 2, 2024
1 parent 14b2c0f commit 9c9ed24
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Build

on:
push:
branches:
- main
release:
types: [created]

jobs:
build:
Expand All @@ -22,3 +21,17 @@ jobs:
run: GOOS=linux GOARCH=arm64 go build -o vitoagent_arm64 ./cmd/agent.go
- name: Build AMD64
run: GOOS=linux GOARCH=amd64 go build -o vitoagent_amd64 ./cmd/agent.go
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./vitoagent_arm64
asset_name: vitoagent_arm64
asset_content_type: application/octet-stream
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./vitoagent_amd64
asset_name: vitoagent_amd64
asset_content_type: application/octet-stream

0 comments on commit 9c9ed24

Please sign in to comment.