update goreleaser to use our vendored swagger version

This commit is contained in:
kim 2024-11-25 13:16:21 +00:00
parent e3a98b0de4
commit 6045ff6c88

View file

@ -7,7 +7,7 @@ version: 2
before:
hooks:
# generate the swagger.yaml file using go-swagger and bundle it into the assets directory
- swagger generate spec --scan-models --exclude-deps -o web/assets/swagger.yaml
- go run ./vendor/github.com/go-swagger/go-swagger/cmd/swagger generate spec --scan-models --exclude-deps -o web/assets/swagger.yaml
- sed -i "s/REPLACE_ME/{{ incpatch .Version }}/" web/assets/swagger.yaml
# Install web deps + bundle web assets
- yarn --cwd ./web/source install