Skip to content

Build and Release Go Binaries #5

Build and Release Go Binaries

Build and Release Go Binaries #5

Workflow file for this run

name: Build and Release Go Binaries
on:
release:
types: [created]
jobs:
build:
name: Build and Release Go Binaries
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux]
goarch: [amd64]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.23
- name: Build Go Binary
run: |
mkdir -p dist
GOOS=${{ matrix.os }} GOARCH=${{ matrix.goarch }} go build -o dist/json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }}
- name: Upload artifacts to release
uses: actions/upload-artifact@v2
with:
name: json-dup-keys-${{ matrix.os }}-${{ matrix.goarch }}