ci: update publish script to install golang if needed

This commit is contained in:
Derrick Hammer 2023-04-23 08:46:12 -04:00
parent 93c110c755
commit ec43f49562
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 0 deletions

6
ci/publish.sh Normal file → Executable file
View File

@ -1,3 +1,9 @@
#!/bin/bash
if ! command -v go &>/dev/null; then
sudo apt-get update && sudo apt-get install -y golang
fi
go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
go install github.com/mikefarah/yq/yq@latest go install github.com/mikefarah/yq/yq@latest