Skip to content

Commit 5a2aeee

Browse files
authoredMar 20, 2025
chore: update .goreleaser.yaml configuration for versioning and formats (#549)
1 parent 3757d80 commit 5a2aeee

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed
 

‎.goreleaser.yaml

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
12
# This is an example .goreleaser.yml file with some sensible defaults.
23
# Make sure to check the documentation at https://goreleaser.com
4+
version: 2
35
before:
46
hooks:
57
# You may remove this if you don't use go modules.
@@ -118,7 +120,7 @@ builds:
118120
- full
119121

120122
archives:
121-
- format: tar.gz
123+
- formats: ['tar.gz']
122124
allow_different_binary_count: true
123125
# this name template makes the OS and Arch compatible with the results of uname.
124126
name_template: >-
@@ -131,8 +133,8 @@ archives:
131133
# use zip for windows archives
132134
format_overrides:
133135
- goos: windows
134-
format: zip
135-
builds:
136+
formats: ['zip']
137+
ids:
136138
- sshpiperd
137139
- plugin_workingdir
138140
- plugin_yaml
@@ -241,14 +243,14 @@ docker_manifests:
241243
checksum:
242244
name_template: "checksums.txt"
243245
snapshot:
244-
name_template: "{{ incpatch .Version }}"
246+
version_template: "{{ incpatch .Version }}"
245247
release:
246248
draft: true
247249
replace_existing_draft: true
248250
disable: true
249251

250252
snapcrafts:
251-
- builds:
253+
- ids:
252254
- sshpiperd
253255
- snaplauncher
254256
- plugin_workingdir

0 commit comments

Comments
 (0)
Failed to load comments.