Skip to content

Commit b31f632

Browse files
authored
feat(ci): add check for goreleaser configuration (#766)
1 parent d9564a8 commit b31f632

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ jobs:
2525

2626
- name: Test
2727
run: make test
28+
29+
config:
30+
name: Check GoReleaser config
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v4
35+
36+
- name: Check GoReleaser
37+
uses: goreleaser/goreleaser-action@v6
38+
with:
39+
args: check

.goreleaser.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ builds:
4545
'
4646
4747
archives:
48-
- format: tar.gz
48+
- formats: [ 'tar.gz' ]
4949
format_overrides:
5050
- goos: windows
51-
format: zip
51+
formats: [ 'zip' ]
5252

5353
release:
5454
# If set to auto, the GitHub release will be marked as "Pre-release"
@@ -66,7 +66,7 @@ changelog:
6666
nfpms:
6767
- id: linux-packages
6868
# IDs of the builds for which to create packages for
69-
builds:
69+
ids:
7070
- linux-builds
7171
package_name: stackit
7272
vendor: STACKIT
@@ -114,7 +114,7 @@ brews:
114114
115115
snapcrafts:
116116
# IDs of the builds for which to create packages for
117-
- builds:
117+
- ids:
118118
- linux-builds
119119
# The name of the snap
120120
name: stackit

0 commit comments

Comments
 (0)