File tree 3 files changed +37
-16
lines changed
3 files changed +37
-16
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : [push, pull_request]
3
- jobs :
4
3
4
+ jobs :
5
5
build :
6
6
name : Build
7
7
runs-on : ubuntu-18.04
16
16
- name : Check out code into the Go module directory
17
17
uses : actions/checkout@v1
18
18
19
- - name : Cache downloaded modules
20
- uses : actions/cache@v1
21
- with :
22
- path : ~/go/pkg/mod
23
- key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
24
- restore-keys : |
25
- ${{ runner.os }}-go-
26
-
27
19
- name : Build
28
20
run : go build
29
21
38
30
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
31
40
32
- name : Send coverage
41
- env :
42
- COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
33
run : |
44
34
GO111MODULE=off go get github.com/mattn/goveralls
45
35
$(go env GOPATH)/bin/goveralls -coverprofile=profile.cov -service=github
36
+ env :
37
+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ push :
5
+ # Sequence of patterns matched against refs/tags
6
+ tags :
7
+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8
+
9
+ jobs :
10
+ goreleaser :
11
+ runs-on : ubuntu-18.04
12
+ steps :
13
+
14
+ - name : Set up Go 1.13
15
+ uses : actions/setup-go@v1
16
+ with :
17
+ go-version : 1.13
18
+ id : go
19
+
20
+ - name : Check out code into the Go module directory
21
+ uses : actions/checkout@v1
22
+
23
+ - name : Log into Docker registry
24
+ run : echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
25
+
26
+ - name : Run GoReleaser
27
+ uses : goreleaser/goreleaser-action@v1
28
+ with :
29
+ version : v0.123.3
30
+ args : release --rm-dist --skip-sign
31
+ env :
32
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -15,12 +15,9 @@ before:
15
15
- go mod download
16
16
17
17
release :
18
- # don't autopublish
18
+ # publish as a github release draft - let a human validate
19
19
draft : true
20
20
21
- # signs:
22
- # - artifacts: checksum
23
-
24
21
changelog :
25
22
filters :
26
23
exclude :
@@ -33,4 +30,4 @@ dockers:
33
30
goos : linux
34
31
goarch : amd64
35
32
dockerfile : Dockerfile.goreleaser
36
- skip_push : true
33
+ # skip_push: true
You can’t perform that action at this time.
0 commit comments