Skip to content

Commit 55b843f

Browse files
committed
add support for goreleaser automation from CI
1 parent 0d5d7ac commit 55b843f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.circleci/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ jobs:
88
working_directory: /go/src/github.com/nilslice/protolock
99
steps:
1010
- checkout
11+
# install goreleaser for automated releases
12+
- run: curl -sL https://git.io/goreleaser | bash
1113
# fetch depenencies, test code
1214
- run: go get -v -t -d ./...
1315
- run: go test -v -race ./...
@@ -18,3 +20,14 @@ jobs:
1820
- run: cat proto.lock | grep "testdata:/:test.proto"
1921
- run: protolock status
2022
- run: protolock commit
23+
24+
workflows:
25+
version: 2
26+
release:
27+
jobs:
28+
- release:
29+
filters:
30+
branches:
31+
ignore: /.*/
32+
tags:
33+
only: /v[0-9]+(\.[0-9]+)*(-.*)*/

0 commit comments

Comments
 (0)