Skip to content

Commit f384863

Browse files
committed
added release automation
1 parent e71da89 commit f384863

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/workflows/release.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
on: release
2+
name: Build
3+
jobs:
4+
goreleaser:
5+
runs-on: ubuntu-latest
6+
steps:
7+
-
8+
name: Checkout
9+
uses: actions/checkout@v1
10+
-
11+
name: Set up Go
12+
uses: actions/setup-go@v1
13+
with:
14+
go-version: 1.13.x
15+
-
16+
name: Run GoReleaser
17+
uses: goreleaser/goreleaser-action@v1
18+
with:
19+
version: latest
20+
args: release --rm-dist
21+
key: ${{ secrets.YOUR_PRIVATE_KEY }}
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

2-
go-log-exec:
3-
go build -o go-log-exec *.go
2+
git-log-exec:
3+
go build -o git-log-exec *.go

0 commit comments

Comments
 (0)