Skip to content

Commit e2a245a

Browse files
committed
ci: add release workflow
1 parent 0f708d3 commit e2a245a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
on:
3+
release:
4+
types:
5+
- created
6+
7+
jobs:
8+
release:
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
goos: [linux, windows, darwin]
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set GO_LDFLAGS
19+
run: |
20+
echo ::set-env name=GO_LDFLAGS::$(make goldflags)
21+
22+
- name: Release binaries
23+
uses: mcuadros/go-release-action@master
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
goos: ${{ matrix.goos }}
27+
goarch: amd64
28+
ldflags: ${{ env.GO_LDFLAGS }}

0 commit comments

Comments
 (0)