Skip to content

v1.0.0

v1.0.0 #1

Workflow file for this run

name: Go binary release
on:
release:
types: [created, edited]
permissions:
contents: write
packages: write
jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: ["linux", "darwin", "windows"]
goarch: ["amd64", "386", "arm64"]
exclude:
- goarch: "386"
goos: "darwin"
- goarch: "arm64"
goos: "windows"
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
binary_name: "wgg"
goversion: "1.23"
extra_files: LICENSE README.md CONTRIBUTING.md
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
ldflags: "-X main.Version=${{ github.ref_name }} -X main.Commit=${{ github.sha }}"