Skip to content

Commit

Permalink
build the entire package (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwiniag authored Feb 3, 2025
1 parent d4141a1 commit a5ec813
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
tag:
description: "Tag for the release (e.g., v0.1.0)"
required: true
title:
description: "Title for the release (e.g., v0.1.0 Chidori)"
name:
description: "Name for the release (e.g., v0.1.0 Chidori)"
required: false

jobs:
Expand All @@ -31,22 +31,24 @@ jobs:
run: go mod tidy

- name: Install Dependencies (webapp)
run: npm install
working-directory: ./webapp
run: |
npm install
npm run build
working-directory: ./webapp

- name: Build Binaries
run: |
mkdir -p dist
GOOS=linux GOARCH=amd64 go build -o dist/gokakashi-agent-linux-amd64 ./cmd/agent.go
GOOS=linux GOARCH=arm64 go build -o dist/gokakashi-agent-linux-arm64 ./cmd/agent.go
GOOS=darwin GOARCH=amd64 go build -o dist/gokakashi-agent-mac-amd64 ./cmd/agent.go
GOOS=darwin GOARCH=arm64 go build -o dist/gokakashi-agent-mac-arm64 ./cmd/agent.go
GOOS=windows GOARCH=amd64 go build -o dist/gokakashi-agent-windows-amd64.exe ./cmd/agent.go
GOOS=linux GOARCH=amd64 go build -o dist/gokakashi-agent-linux-amd64 .
GOOS=linux GOARCH=arm64 go build -o dist/gokakashi-agent-linux-arm64 .
GOOS=darwin GOARCH=amd64 go build -o dist/gokakashi-agent-mac-amd64 .
GOOS=darwin GOARCH=arm64 go build -o dist/gokakashi-agent-mac-arm64 .
GOOS=windows GOARCH=amd64 go build -o dist/gokakashi-agent-windows-amd64.exe .
- name: Upload Release Binaries
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.event.inputs.tag }}
files: dist/*
title: ${{ github.event.inputs.title }}
name: ${{ github.event.inputs.name }}
body: "🚀"

0 comments on commit a5ec813

Please sign in to comment.