Skip to content

Workflow file for this run

on:
release:
types: [created]
permissions:
contents: write
packages: write
jobs:
release-linux-amd64:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
# build and publish in parallel
goos: [linux]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.23.1.linux-amd64.tar.gz"
overwrite: TRUE
pre_command: "export CGO_ENABLED=0"
ldflags: "-s -w -extldflags=-static"
project_path: "./internal/cmd"
extra_files: .env.example README.md LICENSE