Skip to content

Commit f276b50

Browse files
Add workflows
1 parent 9281a1c commit f276b50

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: build
2+
on: [push, pull_request]
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/setup-go@v1
8+
with:
9+
go-version: 1.13.x
10+
- uses: actions/checkout@v1
11+
- run: make build

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: release
2+
on:
3+
release:
4+
types:
5+
- published
6+
jobs:
7+
release:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/setup-go@v1
11+
with:
12+
go-version: 1.13.x
13+
- uses: actions/checkout@master
14+
- run: make release
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
#- uses: goreleaser/goreleaser-action@v1
18+
#env:
19+
#GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
20+
#with:
21+
#args: release --rm-dist

0 commit comments

Comments
 (0)