Skip to content

Commit 3876977

Browse files
authored
Merge pull request #9 from jwhited/goreleaser
setup release workflow
2 parents 1c048e4 + de6b9fd commit 3876977

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0
17+
-
18+
name: Set up Go
19+
uses: actions/setup-go@v2
20+
with:
21+
go-version: 1.15
22+
-
23+
name: Run GoReleaser
24+
uses: goreleaser/goreleaser-action@v2
25+
with:
26+
version: latest
27+
args: release --rm-dist
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
before:
2+
hooks:
3+
- go mod download
4+
builds:
5+
- id: coredns
6+
main: ./cmd/coredns/main.go
7+
binary: coredns
8+
env:
9+
- CGO_ENABLED=0
10+
goos:
11+
- linux
12+
goarch:
13+
- amd64
14+
- 386
15+
- arm
16+
- arm64
17+
18+
- id: wgsd-client
19+
main: ./cmd/wgsd-client/main.go
20+
binary: wgsd-client
21+
env:
22+
- CGO_ENABLED=0
23+
goos:
24+
- linux
25+
goarch:
26+
- amd64
27+
- 386
28+
- arm
29+
- arm64

0 commit comments

Comments
 (0)