Skip to content

Commit 65efcf7

Browse files
committed
add GitHub Actions workflow for cross-platform Go binary releases
1 parent 29a2609 commit 65efcf7

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
permissions:
8+
contents: write
9+
packages: write
10+
11+
jobs:
12+
releases-matrix:
13+
name: Release Go Binary
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
goos: [linux, windows, darwin]
18+
goarch: [amd64, arm64]
19+
exclude:
20+
- goarch: arm64
21+
goos: windows
22+
steps:
23+
- uses: actions/checkout@v4
24+
- uses: wangyoucao577/go-release-action@v1
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
goos: ${{ matrix.goos }}
28+
goarch: ${{ matrix.goarch }}
29+
project_path: "./cmd"
30+
binary_name: "jumpstarter-lab-config"
31+
ldflags: "-s -w"

0 commit comments

Comments
 (0)