Skip to content

Commit d9de74c

Browse files
authored
Merge pull request #8 from jungaretti/automate-releases
Add workflow to build release assets
2 parents 6c2d45f + 4df4e68 commit d9de74c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/release-assets.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release Assets
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
release:
9+
name: Build and Release Assets
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
# build and publish in parallel: linux/amd64, linux/arm64, darwin/amd64, darwin/arm64, windows/amd64
14+
goos: [linux, darwin, windows]
15+
goarch: [amd64, arm64]
16+
exclude:
17+
- goarch: arm64
18+
goos: windows
19+
steps:
20+
- uses: actions/checkout@v3
21+
- uses: wangyoucao577/go-release-action@b3f2406d88324d0d89e7246ce26327b00174c46c # v1.28
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
goos: ${{ matrix.goos }}
25+
goarch: ${{ matrix.goarch }}
26+
extra_files: LICENSE README.md

0 commit comments

Comments
 (0)