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 55 tags :
66 - " v*" # triggers only if push new tag version, like `0.8.4` or else
77
8+ permissions :
9+ contents : write
10+
811jobs :
912 release :
1013 runs-on : ubuntu-latest
@@ -16,18 +19,19 @@ jobs:
1619 - name : Setup Golang
1720 uses : actions/setup-go@v5
1821 with :
19- go-version : " 1.22.4 "
22+ go-version : " 1.23 "
2023 - name : Docker Login
2124 uses : docker/login-action@v1
2225 with :
2326 registry : ghcr.io
2427 username : ${{ github.repository_owner }}
2528 password : ${{ secrets.GITHUB_TOKEN }}
2629 - name : Run GoReleaser
27- uses : goreleaser/goreleaser-action@v3
30+ uses : goreleaser/goreleaser-action@v6
31+ if : startsWith(github.ref, 'refs/tags/')
2832 with :
2933 distribution : goreleaser
30- version : v1.13.1
34+ version : v2.3.2
3135 args : release --rm-dist
3236 env :
3337 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -2,24 +2,23 @@ before:
22 hooks :
33 - go generate ./...
44builds :
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}}
99
1010archives :
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
1615checksum :
17- name_template : ' checksums.txt'
16+ name_template : " checksums.txt"
1817snapshot :
1918 name_template : " {{ .Tag }}-next"
2019changelog :
2120 sort : asc
2221 filters :
2322 exclude :
24- - ' ^docs:'
25- - ' ^test:'
23+ - " ^docs:"
24+ - " ^test:"
You can’t perform that action at this time.
0 commit comments