File tree Expand file tree Collapse file tree 3 files changed +18
-15
lines changed Expand file tree Collapse file tree 3 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 5
5
tags :
6
6
- " v*" # triggers only if push new tag version, like `0.8.4` or else
7
7
8
+ permissions :
9
+ contents : write
10
+
8
11
jobs :
9
12
release :
10
13
runs-on : ubuntu-latest
@@ -16,18 +19,19 @@ jobs:
16
19
- name : Setup Golang
17
20
uses : actions/setup-go@v5
18
21
with :
19
- go-version : " 1.22.4 "
22
+ go-version : " 1.23 "
20
23
- name : Docker Login
21
24
uses : docker/login-action@v1
22
25
with :
23
26
registry : ghcr.io
24
27
username : ${{ github.repository_owner }}
25
28
password : ${{ secrets.GITHUB_TOKEN }}
26
29
- name : Run GoReleaser
27
- uses : goreleaser/goreleaser-action@v3
30
+ uses : goreleaser/goreleaser-action@v6
31
+ if : startsWith(github.ref, 'refs/tags/')
28
32
with :
29
33
distribution : goreleaser
30
- version : v1.13.1
34
+ version : v2.3.2
31
35
args : release --rm-dist
32
36
env :
33
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,24 +2,23 @@ before:
2
2
hooks :
3
3
- go generate ./...
4
4
builds :
5
- - env :
6
- - CGO_ENABLED=0
7
- ldflags :
8
- - -s -w -X github.com/gitpod-io/leeway/pkg/leeway.Version={{.Version}}-{{.ShortCommit}}
5
+ - env :
6
+ - CGO_ENABLED=0
7
+ ldflags :
8
+ - -s -w -X github.com/gitpod-io/leeway/pkg/leeway.Version={{.Version}}-{{.ShortCommit}}
9
9
10
10
archives :
11
- - replacements :
12
- darwin : Darwin
13
- linux : Linux
14
- 386 : i386
15
- amd64 : x86_64
11
+ - replacements :
12
+ darwin : Darwin
13
+ linux : Linux
14
+ amd64 : x86_64
16
15
checksum :
17
- name_template : ' checksums.txt'
16
+ name_template : " checksums.txt"
18
17
snapshot :
19
18
name_template : " {{ .Tag }}-next"
20
19
changelog :
21
20
sort : asc
22
21
filters :
23
22
exclude :
24
- - ' ^docs:'
25
- - ' ^test:'
23
+ - " ^docs:"
24
+ - " ^test:"
You can’t perform that action at this time.
0 commit comments