use go install for swag in goreleaser

This commit is contained in:
Harvey Tindall
2022-03-22 15:15:57 +00:00
parent 8b52330304
commit 4c3e310634
4 changed files with 24 additions and 6 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ before:
- rm data/bundle.css
- npx tailwindcss -i data/web/css/bundle.css -o data/web/css/bundle.css
- mv data/crash.html data/html/
- go get -u github.com/swaggo/swag/cmd/swag
- go install github.com/swaggo/swag/cmd/swag@latest
- swag init -g main.go
- mv data/web/css/bundle.css data/web/css/{{.Env.JFA_GO_CSS_VERSION}}bundle.css
builds: