Skip to content

Release binaries

Release binaries #3

Workflow file for this run

name: Release binaries
on:
release:
types: [created]
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux]
goarch: [amd64,arm64]
fail-fast: false
steps:
- name: Git checkout
uses: actions/checkout@v5
with:
fetch-depth: '0'
- uses: actions/setup-go@v6
with:
go-version: stable
- name: Build release
uses: wangyoucao577/go-release-action@v1.53
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "."
binary_name: "caddy"
pre_command: "go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest"
build_command: "xcaddy build --with github.com/cego/caddy-docker-api-auth@latest=./ --"
sha256sum: true