Skip to content

Commit 3691eac

Browse files
committed
fix goreleaser
1 parent 9bca8f9 commit 3691eac

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919
- run: git fetch --force --tags
20-
- uses: actions/setup-go@v3
20+
21+
- name: Install Go
22+
uses: actions/setup-go@v5
2123
with:
22-
go-version: 'stable'
23-
cache: true
24-
- uses: goreleaser/goreleaser-action@v2
24+
go-version-file: go.mod
25+
26+
- uses: goreleaser/goreleaser-action@v6
2527
with:
26-
distribution: goreleaser
27-
version: latest
28-
args: release --rm-dist
28+
distribution: goreleaser # or 'goreleaser-pro'
29+
version: "~> v2" # or 'latest', 'nightly', semver
30+
args: release --clean
2931
env:
3032
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/dist/

.goreleaser.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# This is an example .goreleaser.yml file with some sensible defaults.
22
# Make sure to check the documentation at https://goreleaser.com
3+
version: 2
34
before:
45
hooks:
56
# You may remove this if you don't use go modules.
@@ -25,7 +26,7 @@ archives:
2526
checksum:
2627
name_template: 'checksums.txt'
2728
snapshot:
28-
name_template: "{{ incpatch .Version }}-next"
29+
version_template: "{{ incpatch .Version }}-next"
2930
changelog:
3031
sort: asc
3132
filters:

go.sum

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx2
77
github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
88
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
99
github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I=
10-
github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
1110
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
1211
github.com/cloudflare/circl v1.3.8 h1:j+V8jJt09PoeMFIu2uh5JUyEaIHTXVOHslFoLNAKqwI=
1312
github.com/cloudflare/circl v1.3.8/go.mod h1:PDRU+oXvdD7KCtgKxW95M5Z8BpSCJXQORiZFnBQS5QU=

0 commit comments

Comments
 (0)