From 47f768b20b2f412d9171ba4e6fea049684c9d744 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 23 Apr 2023 09:10:31 -0400 Subject: [PATCH] ci: need sudo on go install, chmod it, then access it directly --- ci/publish.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/publish.sh b/ci/publish.sh index e718946..754a7ca 100755 --- a/ci/publish.sh +++ b/ci/publish.sh @@ -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