From ec43f49562acbb18e4fb8f063f8b0abc79e9348e Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 23 Apr 2023 08:46:12 -0400 Subject: [PATCH] ci: update publish script to install golang if needed --- ci/publish.sh | 6 ++++++ 1 file changed, 6 insertions(+) mode change 100644 => 100755 ci/publish.sh diff --git a/ci/publish.sh b/ci/publish.sh old mode 100644 new mode 100755 index ba64bc0..f981dd0 --- a/ci/publish.sh +++ b/ci/publish.sh @@ -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/mikefarah/yq/yq@latest