Skip to content

Commit 8fe8bbb

Browse files
committed
Update release action
- Adds darwin builds - Adds arm64 architecture builds
1 parent a2cff1e commit 8fe8bbb

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
1-
# .github/workflows/release.yaml
2-
31
name: Release Go Binary
42

53
on:
64
release:
7-
types: [created]
5+
types: [created, published]
6+
workflow_dispatch:
87

98
jobs:
109
releases-matrix:
1110
name: Release Go Binary
1211
runs-on: ubuntu-latest
1312
strategy:
1413
matrix:
15-
# build and publish in parallel: linux/amd64, windows/amd64
16-
goos: [linux, windows]
17-
goarch: [amd64]
14+
goos: [linux, windows, darwin]
15+
goarch: [amd64, arm64]
16+
exclude:
17+
- goarch: arm64
18+
goos: windows
1819
steps:
1920
- uses: actions/checkout@v2
2021
- uses: wangyoucao577/go-release-action@v1.17
2122
with:
2223
github_token: ${{ secrets.GITHUB_TOKEN }}
2324
goos: ${{ matrix.goos }}
2425
goarch: ${{ matrix.goarch }}
25-
extra_files: LICENSE README.md
26+
extra_files: LICENSE README.md gof.yaml.example

0 commit comments

Comments
 (0)