Skip to content

Commit 96f1206

Browse files
authored
Merge pull request #12 from jehiah/release_workflow_12
github action for building release builds
2 parents f5c75b0 + 352dffc commit 96f1206

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/release.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
permissions:
6+
contents: write
7+
packages: write
8+
9+
jobs:
10+
release-go-binary:
11+
name: release Go Binary
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
goos: [linux]
16+
goarch: [amd64]
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: wangyoucao577/go-release-action@v1
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
goos: ${{ matrix.goos }}
23+
goarch: ${{ matrix.goarch }}
24+
goversion: 1.21

.github/workflows/test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
test:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-latest
1010
timeout-minutes: 20
1111
strategy:
1212
fail-fast: false

0 commit comments

Comments
 (0)