File tree 4 files changed +21
-21
lines changed
4 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -2,31 +2,30 @@ name: Release
2
2
3
3
on :
4
4
push :
5
- tags :
6
- - " *"
5
+ tags : ["v*.*.*"]
7
6
8
7
jobs :
9
8
goreleaser :
10
9
runs-on : ubuntu-latest
11
10
steps :
12
- - uses : actions/checkout@v3
11
+ - uses : actions/checkout@v4
13
12
with :
14
13
fetch-depth : 0
15
- - uses : actions/setup-go@v4
14
+ - uses : actions/setup-go@v5
16
15
with :
17
- go-version : ~1.17
18
- - uses : docker/setup-qemu-action@v1
19
- - uses : docker/setup-buildx-action@v1
20
- - uses : docker/login-action@v1
16
+ go-version : " stable "
17
+ - uses : docker/setup-qemu-action@v3
18
+ - uses : docker/setup-buildx-action@v3
19
+ - uses : docker/login-action@v3
21
20
with :
22
21
registry : ghcr.io
23
22
username : ${{ github.repository_owner }}
24
23
password : ${{ secrets.GITHUB_TOKEN }}
25
24
- name : Run GoReleaser
26
- uses : goreleaser/goreleaser-action@v2
25
+ uses : goreleaser/goreleaser-action@v5
27
26
with :
28
27
distribution : goreleaser
29
28
version : latest
30
- args : release --rm-dist
29
+ args : release --clean
31
30
env :
32
31
GITHUB_TOKEN : ${{ secrets.GH_PAT }}
Original file line number Diff line number Diff line change 12
12
name : lint
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
- name : golangci-lint
17
- uses : golangci/golangci-lint-action@v2
17
+ uses : golangci/golangci-lint-action@v4
18
18
19
19
test :
20
20
strategy :
@@ -25,11 +25,11 @@ jobs:
25
25
steps :
26
26
- name : Install Go
27
27
if : success()
28
- uses : actions/setup-go@v4
28
+ uses : actions/setup-go@v5
29
29
with :
30
30
go-version : ${{ matrix.go-version }}
31
31
- name : Checkout code
32
- uses : actions/checkout@v3
32
+ uses : actions/checkout@v4
33
33
with :
34
34
path : src/github.com/guptarohit/asciigraph
35
35
- name : Set up GOPATH
Original file line number Diff line number Diff line change @@ -30,13 +30,14 @@ archives:
30
30
files :
31
31
- LICENSE
32
32
- README.md
33
- # Replacements for GOOS and GOARCH on the archive name.
34
- replacements :
35
- ' 386 ' : i386
36
- darwin : Darwin
37
- linux : Linux
38
- windows : Windows
39
- amd64 : x86_64
33
+ name_template : >-
34
+ {{- .ProjectName }}_
35
+ {{- .Version }}_
36
+ {{- title .Os }}_
37
+ {{- if eq .Arch "amd64" }}x86_64
38
+ {{- else if eq .Arch "386" }}i386
39
+ {{- else }}{{ .Arch }}{{ end }}
40
+ {{- if .Arm }}v{{ .Arm }}{{ end -}}
40
41
format_overrides :
41
42
- goos : windows
42
43
format : zip
You can’t perform that action at this time.
0 commit comments