Skip to content

Commit 3855469

Browse files
authored
feat: enable semantic release
1 parent 152c026 commit 3855469

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/go.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
build-and-release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-go@v2
15+
with:
16+
go-version: 1.16
17+
- run: go build -v ./...
18+
- run: go test -v ./...
19+
- uses: go-semantic-release/action@v1
20+
if: ${{ github.ref == 'refs/heads/master' }}
21+
with:
22+
github-token: ${{ secrets.GITHUB_TOKEN }}
23+
allow-initial-development-versions: true

0 commit comments

Comments
 (0)