File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : Release
2
2
3
3
on :
4
- push :
5
- tags :
6
- - ' v*'
4
+ workflow_run :
5
+ workflows :
6
+ - Test
7
+ types :
8
+ - completed
7
9
8
10
jobs :
9
11
release :
10
12
name : Release
11
13
runs-on : ubuntu-latest
12
14
steps :
13
15
- name : Checkout
14
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v3
15
17
with :
16
18
fetch-depth : 0
17
19
- name : Setup Go
18
- uses : actions/setup-go@v2
20
+ uses : actions/setup-go@v3
19
21
with :
20
22
go-version : 1.19
21
23
- name : Run GoReleaser
22
- uses : goreleaser/goreleaser-action@v2
24
+ uses : goreleaser/goreleaser-action@v4
23
25
with :
24
26
version : latest
25
- args : release --rm-dist
27
+ args : release --clean
26
28
env :
27
29
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -14,14 +14,12 @@ jobs:
14
14
runs-on : ${{ matrix.os }}
15
15
steps :
16
16
- name : Install Go
17
- uses : actions/setup-go@v2
17
+ uses : actions/setup-go@v3
18
18
with :
19
19
go-version : ${{ matrix.go-version }}
20
20
- name : Checkout code
21
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
22
22
- name : Test
23
23
run : go test -coverprofile="coverage.txt" -covermode=atomic ./...
24
- - name : Upload coverage
25
- uses : codecov/codecov-action@v1
26
- with :
27
- token : ${{ secrets.CODECOV_TOKEN }}
24
+ - name : Upload coverage reports to Codecov
25
+ uses : codecov/codecov-action@v3
You can’t perform that action at this time.
0 commit comments