-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (31 loc) · 884 Bytes
/
go-bin-release.yml
File metadata and controls
34 lines (31 loc) · 884 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
33
34
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: "vault"
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 }}"