Skip to content

fix: build action

fix: build action #2

name: Build & Release
on:
push:
tags:
- 'v*'
jobs:
build-win:
name: Build & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21'
- name: Build for Windows
run: GOOS=windows GOARCH=amd64 go build -o ./mkbsd-win-x64.exe ./main.go
- name: Build for Linux (x64)
run: GOOS=linux GOARCH=amd64 go build -o ./mkbsd-linux-x64 ./main.go
- name: Publish Release
uses: softprops/action-gh-release@v2
with:
files: |
./mkbsd-win-x64.exe
./mkbsd-linux-x64