Skip to content

Commit 29682dc

Browse files
committed
add release CI
1 parent e7c54aa commit 29682dc

1 file changed

Lines changed: 25 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,31 @@
11
name: "tagged-release"
22

33
on:
4-
push:
5-
tags:
6-
- "v*"
4+
release:
5+
types: [created]
76

87
jobs:
9-
tagged-release:
10-
name: "Tagged Release"
11-
runs-on: "ubuntu-latest"
12-
8+
releases-matrix:
9+
name: Release Go Binary
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
# build and publish in parallel: linux/386, linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
14+
goos: [linux, windows, darwin]
15+
goarch: ["386", amd64, arm64]
16+
exclude:
17+
- goarch: "386"
18+
goos: darwin
19+
- goarch: arm64
20+
goos: windows
1321
steps:
14-
- uses: "marvinpinto/action-automatic-releases@latest"
15-
with:
16-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
17-
prerelease: false
22+
- uses: actions/checkout@v3
23+
- uses: wangyoucao577/go-release-action@v1
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
goos: ${{ matrix.goos }}
27+
goarch: ${{ matrix.goarch }}
28+
goversion: "1.19"
29+
project_path: "./extensions"
30+
binary_name: "fluentd-lambda-extension"
31+
extra_files: LICENSE README.md

0 commit comments

Comments
 (0)