Skip to content

chore: remove build directory from git and add to .gitignore #1

chore: remove build directory from git and add to .gitignore

chore: remove build directory from git and add to .gitignore #1

Workflow file for this run

name: Release App
on:
push:
tags:
- "v*"
jobs:
release:
name: Release Binaries
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version: "1.24"
- name: Build binaries
run: |
mkdir -p build
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/clog-linux-amd64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o build/clog-linux-arm64
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o build/clog-windows-amd64.exe
CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build -o build/clog-windows-arm64.exe
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o build/clog-darwin-amd64
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o build/clog-darwin-arm64
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: build/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}