Skip to content

Commit 2f58e8f

Browse files
authored
Update Go version and GoReleaser (#85)
1 parent ddac941 commit 2f58e8f

File tree

4 files changed

+25
-31
lines changed

4 files changed

+25
-31
lines changed

.github/workflows/release.yml

+12-15
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,23 @@ jobs:
88
goreleaser:
99
runs-on: ubuntu-latest
1010
steps:
11-
-
12-
name: Checkout
13-
uses: actions/checkout@v2
11+
- name: Checkout
12+
uses: actions/checkout@v4
1413
with:
1514
fetch-depth: 0
16-
-
17-
name: Set up Go
18-
uses: actions/setup-go@v2
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
1918
with:
20-
go-version: 1.17
21-
-
22-
name: Test
19+
go-version: stable
20+
21+
- name: Test
2322
run: go test ./...
24-
-
25-
name: Run GoReleaser
26-
uses: goreleaser/goreleaser-action@v2
23+
24+
- name: Run GoReleaser
25+
uses: goreleaser/goreleaser-action@v6
2726
with:
28-
distribution: goreleaser
2927
version: latest
30-
args: release --clean
28+
args: ${{ github.ref_type == 'tag' && 'release' || 'build --snapshot' }} --clean
3129
env:
3230
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
33-

.goreleaser.yml

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
version: 2
12
project_name: curlie
23
builds:
3-
-
4-
binary: curlie
4+
- binary: curlie
55
env:
66
- CGO_ENABLED=0
77
goos:
@@ -14,14 +14,12 @@ builds:
1414
- arm
1515
- arm64
1616
ignore:
17-
-
18-
goos: windows
17+
- goos: windows
1918
goarch: arm64
2019
release:
2120
name_template: "{{.ProjectName}}-v{{.Version}}"
2221
brews:
23-
-
24-
tap:
22+
- repository:
2523
owner: rs
2624
name: homebrew-tap
2725
commit_author:
@@ -30,8 +28,7 @@ brews:
3028
homepage: https://github.com/rs/curlie
3129
description: The power of curl, the ease of use of httpie.
3230
nfpms:
33-
-
34-
maintainer: Olivier Poitrey <rs@rhapsodyk.net>
31+
- maintainer: Olivier Poitrey <rs@rhapsodyk.net>
3532
description: curle is a frontend to curl that offers the ease of use of httpie without having to compromise curl features and performance.
3633
license: MIT
3734
formats:

go.mod

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/rs/curlie
22

3+
go 1.24.0
4+
35
require (
4-
golang.org/x/sys v0.15.0
5-
golang.org/x/term v0.15.0
6+
golang.org/x/sys v0.30.0
7+
golang.org/x/term v0.29.0
68
)
7-
8-
go 1.13

go.sum

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
2-
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
3-
golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
4-
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
1+
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
2+
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
3+
golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU=
4+
golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s=

0 commit comments

Comments
 (0)