Skip to content

Commit aa0fbc1

Browse files
committed
Upgrade go and goreleaser format
1 parent 11a4f64 commit aa0fbc1

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: 1.22.0
19+
go-version: 1.24.0
2020

2121
- name: Build
22-
run: go build -v ./...
22+
run: |
23+
go mod tidy
24+
go build -v ./...
2325
2426
- name: Test
2527
run: go test -v ./...

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Set up Go
2626
uses: actions/setup-go@v5
2727
with:
28-
go-version: 1.22.0
28+
go-version: 1.24.0
2929

3030
- name: Install Snapcraft
3131
uses: samuelmeuli/action-snapcraft@v3

.goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This is an example goreleaser.yaml file with some sane defaults.
22
# Make sure to check the documentation at http://goreleaser.com
3+
version: 2
34

45
project_name: enonic
56

@@ -74,11 +75,11 @@ archives:
7475
{{- with .Arm }}_v{{ . }}{{ end }}
7576
{{- if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
7677
77-
format: tar.gz # set to binary to omit archiving
78+
formats: tar.gz # set to binary to omit archiving
7879

7980
format_overrides:
8081
- goos: windows
81-
format: zip
82+
formats: zip
8283

8384
files:
8485
- LICENSE.txt

0 commit comments

Comments
 (0)