Skip to content

Commit 5652444

Browse files
authored
Update goreleaser and remove i386 (#193)
1 parent edaca1e commit 5652444

File tree

3 files changed

+18
-15
lines changed

3 files changed

+18
-15
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tags:
66
- "v*" # triggers only if push new tag version, like `0.8.4` or else
77

8+
permissions:
9+
contents: write
10+
811
jobs:
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 }}

.goreleaser.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,23 @@ before:
22
hooks:
33
- go generate ./...
44
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}}
99

1010
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
1615
checksum:
17-
name_template: 'checksums.txt'
16+
name_template: "checksums.txt"
1817
snapshot:
1918
name_template: "{{ .Tag }}-next"
2019
changelog:
2120
sort: asc
2221
filters:
2322
exclude:
24-
- '^docs:'
25-
- '^test:'
23+
- "^docs:"
24+
- "^test:"

leeway

-29.2 MB
Binary file not shown.

0 commit comments

Comments
 (0)