Skip to content

Commit 04c9667

Browse files
committed
Add CI
1 parent 760d3f8 commit 04c9667

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yaml

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

0 commit comments

Comments
 (0)