Skip to content

Commit e3a01d9

Browse files
authored
Add GitHub Actions workflow for release process
1 parent f316e37 commit e3a01d9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Go Binary
10+
runs-on: ubuntu-latest
11+
permissions: write-all
12+
strategy:
13+
matrix:
14+
goos: [linux, windows, darwin]
15+
goarch: [amd64, arm64]
16+
exclude:
17+
- goarch: arm64
18+
goos: windows
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v3
22+
23+
- name: Build and release
24+
uses: wangyoucao577/[email protected]
25+
with:
26+
github_token: ${{ secrets.GITHUB_TOKEN }}
27+
goos: ${{ matrix.goos }}
28+
goarch: ${{ matrix.goarch }}
29+
goversion: "https://dl.google.com/go/go1.23.0.linux-amd64.tar.gz"
30+
binary_name: "bash-script-tools"
31+
retry: 10
32+
overwrite: true
33+
extra_files: LICENSE README.md

0 commit comments

Comments
 (0)