I have a project and I'm trying to set up goreleaser using GitHub Actions. But I'm getting an error:
GoReleaser latest installed successfully v0.1.0 tag found for commit '96480db'
/opt/hostedtoolcache/goreleaser-action/1.10.2/x64/goreleaser release --rm-dist
•starting release...
• loading config file file=.goreleaser.yml
⨯release failed after 0serror=yaml: line 26: did not find expected key
Error: The process '/opt/hostedtoolcache/goreleaser-action/1.10.2/x64/goreleaser' failed with exit code 1
.goreleaser.yml
before:
hooks:
- go mod tidy
builds:
- main: cmd/gsolc-select/main.go
binary: gsolc-select
id: gsolc-select-cli
env:
- CGO_ENABLED=0
goos: [ windows,linux,darwin ]
goarch: [ amd64,386,arm,arm64 ]
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
flags:
- -trimpath
- main: cmd/solc/main.go
binary: solc
id: solc
env:
- CGO_ENABLED=0
goos: [ windows,linux,darwin ]
goarch: [ amd64,386,arm,arm64 ]
ignore:
- goos: darwin
goarch: 386
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
archives:
- format: zip
id: gsolc-select
builds: [ gsolc-select-cli ]
replacements:
darwin: macOS
- format: zip
id: solc
builds: [ solc ]
replacements:
darwin: macOS
checksum:
algorithm: sha256
.github/workflows/release.yml
name: