8000 fix: correct goreleaser v2 config syntax · GoCodeAlone/workflow-plugin-okta@97a8955 · GitHub
[go: up one dir, main page]

Skip to content

Commit 97a8955

Browse files
intel352claude
andcommitted
fix: correct goreleaser v2 config syntax
Remove invalid top-level before/after hooks and fix unquoted template strings that caused YAML parsing errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent bd3391a commit 97a8955

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

.goreleaser.yml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,23 @@
11
version: 2
2-
3-
before:
4-
hooks:
5-
- go mod tidy
6-
- "cp plugin.json plugin.json.orig"
7-
- "sed -i.bak 's/\"version\": \".*\"/\"version\": \"{{ .Version }}\"/' plugin.json && rm -f plugin.json.bak"
8-
9-
after:
10-
hooks:
11-
- "mv plugin.json.orig plugin.json"
12-
2+
project_name: workflow-plugin-okta
133
builds:
14-
- id: workflow-plugin-okta
15-
main: ./cmd/{{ .ProjectName }}
16-
binary: "{{ .ProjectName }}"
17-
env:
18-
- CGO_ENABLED=0
19-
- GOPRIVATE=github.com/GoCodeAlone/*
4+
- id: plugin
5+
main: ./cmd/workflow-plugin-okta
6+
binary: workflow-plugin-okta
7+
env: [CGO_ENABLED=0]
208
goos: [linux, darwin]
219
goarch: [amd64, arm64]
22-
ldflags: [-s -w -X main.version={{.Version}}]
23-
10+
ldflags: ["-s", "-w"]
2411
archives:
25-
- formats: [tar.gz]
12+
- id: plugin
13+
builds: [plugin]
2614
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
27-
files: [plugin.json, LICENSE]
28-
15+
format: tar.gz
16+
files:
17+
- plugin.json
18+
- LICENSE
2919
checksum:
30-
name_template: "checksums.txt"
31-
20+
name_template: checksums.txt
3221
release:
3322
github:
3423
owner: GoCodeAlone

0 commit comments

Comments
 (0)
0