Skip to content

Commit 2ca1e17

Browse files
committed
fix shell command in goreleaser - ci/cd
1 parent dbffc6a commit 2ca1e17

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.goreleaser.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ git:
1010
before:
1111
hooks:
1212
# Build the frontend first (similar to your build.sh)
13-
- cd web/frontend && npm ci && npm run build
13+
- sh -c "cd web/frontend && npm ci && npm run build"
1414
# Copy frontend dist to internal/web for embedding
1515
- rm -rf internal/web/dist
1616
- cp -r web/frontend/dist internal/web/
@@ -39,11 +39,13 @@ builds:
3939
# Archive configuration
4040
archives:
4141
- id: default
42-
format: tar.gz
43-
# Use zip for windows
4442
format_overrides:
4543
- goos: windows
4644
format: zip
45+
- goos: linux
46+
format: tar.gz
47+
- goos: darwin
48+
format: tar.gz
4749
name_template: >-
4850
{{ .ProjectName }}_
4951
{{- title .Os }}_
@@ -62,7 +64,7 @@ checksum:
6264

6365
# Snapshot configuration
6466
snapshot:
65-
name_template: "{{ incpatch .Version }}-next"
67+
version_template: "{{ incpatch .Version }}-next"
6668

6769
# Changelog configuration
6870
changelog:

0 commit comments

Comments
 (0)