Skip to content

Commit b44e35f

Browse files
author
kw.lei
committed
add release
1 parent 925ca82 commit b44e35f

File tree

1 file changed

+23
-24
lines changed

1 file changed

+23
-24
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1-
name: Go
2-
on: [push]
3-
jobs:
1+
name: goreleaser
2+
3+
on:
4+
create:
5+
tags:
6+
- v*
47

5-
build:
6-
name: Build
8+
jobs:
9+
goreleaser:
710
runs-on: ubuntu-latest
811
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v1
15+
-
16+
name: Set up Go
17+
uses: actions/setup-go@v1
18+
with:
19+
go-version: 1.13.x
920

10-
- name: Set up Go 1.13
11-
uses: actions/setup-go@v1
12-
with:
13-
go-version: 1.13
14-
id: go
15-
16-
- name: Check out code into the Go module directory
17-
uses: actions/checkout@v1
18-
19-
- name: Get dependencies
20-
run: |
21-
go get -v -t -d ./...
22-
if [ -f Gopkg.toml ]; then
23-
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
24-
dep ensure
25-
fi
26-
27-
- name: Build
28-
run: go build -v .
21+
- name: Run Server GoReleaser
22+
uses: goreleaser/goreleaser-action@v1
23+
with:
24+
version: latest
25+
args: release --rm-dist
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)