-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (29 loc) · 799 Bytes
/
release.yaml
File metadata and controls
32 lines (29 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: release
on:
release:
types: [created]
workflow_dispatch:
env:
CMD_PATH: .
BINARY_NAME: github-latest
GO_VERSION: 1.20.1
CGO_ENABLED: 0
jobs:
releases-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, windows, darwin]
goarch: [arm64, amd64]
steps:
- uses: actions/checkout@v6
- uses: wangyoucao577/go-release-action@v1.55
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: 'https://golang.org/dl/go${{ env.GO_VERSION }}.linux-amd64.tar.gz'
project_path: '${{ env.CMD_PATH }}'
ldflags: -s -w
build_flags: -a -installsuffix cgo
binary_name: '${{ env.BINARY_NAME }}'