ci: need sudo on go install, chmod it, then access it directly

This commit is contained in:
Derrick Hammer 2023-04-23 09:10:31 -04:00
parent c08e130e97
commit 47f768b20b
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 2 deletions

View File

@ -4,9 +4,11 @@ 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
sudo go install github.com/goreleaser/nfpm/v2/cmd/nfpm@latest
sudo chmod +x /root/go/bin/nfpm
yq -i ".version=\"${1}\"" nfpm.yaml
nfpm package -p deb
sudo /root/go/bin/nfpm package -p deb
pip install --upgrade cloudsmith-cli
cloudsmith push deb lumeweb/lume-web-relay *.deb