Skip to content

Release

Release #7

Workflow file for this run

# .github/workflows/release.yaml
name: Release
on:
push:
tags: [ "v*" ]
permissions:
contents: write
packages: write
jobs:
# homebrew:
# runs-on: ubuntu-latest
# steps:
# - name: Update Homebrew formula
# uses: dawidd6/action-homebrew-bump-formula@v3
# with:
# GitHub token, required, not the default one
# token: ${{secrets.TOKEN}}
# Optional, defaults to homebrew/core
# tap: USER/REPO
# Formula name, required
# formula: FORMULA
# Optional, will be determined automatically
# tag: ${{github.ref}}
# Optional, will be determined automatically
# revision: ${{github.sha}}
# Optional, if don't want to check for already open PRs
# force: false # true
build-go-binary:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [ linux, windows, darwin ]
goarch: [ amd64, arm64 ]
exclude:
- goarch: "386"
goos: darwin
- goarch: arm64
goos: windows
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: "ai"
build_command: make build
extra_files: ./bin/ai LICENSE README.md